Class: ORS::Commands::Restart
Instance Method Summary collapse
Methods inherited from Base
#description, #help, #help_options, #setup, #usage
Methods included from Base::ClassMethods
Methods included from Helpers
#build_command, #execute_command, #execute_in_parallel, #fatal, #info
Methods included from Helpers::CommandHelpers
#bundle_install, #restart_server, #run_migrations, #setup_repo, #setup_ruby, #start_server, #stop_server, #update_code
Methods included from Helpers::PrepareHelpers
#prepare_environment, #prepare_environment_with_rvm, #prepare_initial_environment
Methods included from Helpers::ParseHelpers
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 |
# File 'lib/ors/commands/restart.rb', line 4 def execute info "restarting #{ORS.config[:name]} #{ORS.config[:environment]}..." execute_in_parallel(ORS.config[:app_servers]) {|server| restart_server server } end |