lib/deprec/capistrano_extensions.rb in isaac-deprec-1.99.30 vs lib/deprec/capistrano_extensions.rb in isaac-deprec-1.99.32

- old
+ new

@@ -331,9 +331,16 @@ #{src_package[:install]} #{src_package[:post_install]} ' SUDO end + + def read_database_yml + db_config = YAML.load_file('config/database.yml') + set :db_user, db_config[rails_env]["username"] + set :db_password, db_config[rails_env]["password"] + set :db_name, db_config[rails_env]["database"] + end ## # Run a command and ask for input when input_query is seen. # Sends the response back to the server.