Skip to content

Instantly share code, notes, and snippets.

@mccrory
Created November 13, 2010 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mccrory/675708 to your computer and use it in GitHub Desktop.
Save mccrory/675708 to your computer and use it in GitHub Desktop.
Detects if the Detected framework needs a DB and offers to create one
# Provision database here if needed.
if framework_needs_db?(framework)
proceed = ask("This framework usually needs a database, would you like to provision it? [Yn]: ")
if proceed != 'n' && proceed != 'N'
app_add_service_helper(appname, 'database', '')
provisioned_db = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment