Class: ORS::Commands::Deploy
Constant Summary
Constants included from ORS::Config
Instance Method Summary collapse
Methods inherited from Base
Methods included from Base::ClassMethods
Methods included from Helpers
#build_command, #bundle_install, #execute_command, #execute_in_parallel, #fatal, #info, #prepare_environment, #restart_server, #run_migrations, #setup_repo, #setup_ruby, #start_server, #stop_server, #update_code
Methods included from ORS::Config
#all_servers, #deploy_directory, #revision, #ruby_servers
Methods included from ORS::Config::ModuleMethods
#git, #parse_config_file, #parse_options, #valid_environments, #valid_options?
Instance Method Details
#execute ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ors/commands/deploy.rb', line 5 def execute info "deploying #{name} #{environment}..." [Update, Migrate].each {|command| run command } if remote_deploy_hook execute_in_parallel(app_servers) do |server| execute_command server, prepare_environment, "RAILS_ENV=#{environment} #{remote_deploy_hook}" end end run Restart eval ERB.new(deploy_hook).result(binding) if deploy_hook end |