From efb181b390e81453bb4c380e50450155db3be43b Mon Sep 17 00:00:00 2001 From: Mathieu Gagne Date: Wed, 19 Mar 2014 12:32:10 -0400 Subject: [PATCH] Adds helpers to base --- lib/georgia_recipes.rb | 1 - lib/georgia_recipes/base.rb | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/georgia_recipes.rb b/lib/georgia_recipes.rb index fc1cf2a..a58f469 100644 --- a/lib/georgia_recipes.rb +++ b/lib/georgia_recipes.rb @@ -1,5 +1,4 @@ require "georgia_recipes/version" -require "georgia_recipes/helper_methods" module GeorgiaRecipes end diff --git a/lib/georgia_recipes/base.rb b/lib/georgia_recipes/base.rb index 52ac26f..13bab58 100644 --- a/lib/georgia_recipes/base.rb +++ b/lib/georgia_recipes/base.rb @@ -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