Skip to content

Commit

Permalink
Adds helpers to base
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieugagne committed Mar 19, 2014
1 parent d9a9b6f commit efb181b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion lib/georgia_recipes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "georgia_recipes/version"
require "georgia_recipes/helper_methods"

module GeorgiaRecipes
end
7 changes: 1 addition & 6 deletions lib/georgia_recipes/base.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
require 'capistrano'
require 'capistrano/cli'
require 'georgia_recipes/helper_methods'

Capistrano::Configuration.instance.load do

set_default(:host) { ask("What is the fully qualified domain name?") }
set_default(:remote_db_user) { db_config_file["#{rails_env}"]["username"] rescue ask("Remote database user: ") }
set_default(:remote_db_user) { db_config_file["#{rails_env}"]["database"] rescue ask("Remote database name: ") }
set_default(:remote_db_user) { db_config_file["#{rails_env}"]["password"] rescue ask("Remote database password: ") }
set_default(:local_db_user) { db_config_file["development"]["username"] rescue ask("Local database user: ") }
set_default(:local_db_user) { db_config_file["development"]["database"] rescue ask("Local database name: ") }
set_default(:local_db_user) { db_config_file["development"]["password"] rescue ask("Local database password: ") }

namespace :deploy do

Expand Down

0 comments on commit efb181b

Please sign in to comment.