lib/capones_recipes/tasks/database/sync.rb in capones_recipes-1.20.0 vs lib/capones_recipes/tasks/database/sync.rb in capones_recipes-1.20.1

- old
+ new

@@ -46,11 +46,11 @@ run_locally "rake db:drop; rake db:create" run_locally "bzip2 -d -c #{filename} | mysql -u #{username} --password='#{password}' #{database}" run_locally "rm -f #{filename}" logger.important "sync database from the stage '#{stage}' to local finished" - + # Start db:migrate run_locally "rake db:migrate" end end @@ -120,15 +120,7 @@ env = rails_env || db config = capture "cat #{latest_release}/config/database.yml" database = YAML::load(config) return database["#{env}"]['username'], database["#{env}"]['password'], database["#{env}"]['database'], database["#{env}"]['host'] end - - # - # Returns the actual host name to sync and port - # - def host_and_port - return roles[:web].servers.first.host, ssh_options[:port] || roles[:web].servers.first.port || 22 - end - end end