Class: ORS::Commands::Check
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
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/ors/commands/check.rb', line 3 def execute = app_servers.map do |server| [ "[#{server}] ", execute_command(server, prepare_environment, %(cat restart.timestamp), :capture => true) ].join end.join("\n") puts unless pretending end |
#help ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ors/commands/check.rb', line 14 def help puts <<-END Usage: ./ors check [environment=production] [options] === Description Prints out contents of restart.timestamp on the app servers === Options --pretend (or -p) Don't execute anything, just show me what you're going to do --no-gateway (or -ng) Don't use a gateway (if you're inside the firewall) END end |