Class: ORS::Commands::Timestamps
- Defined in:
- lib/ors/commands/timestamps.rb
Overview
ors timestamps ors timestamps from staging
Instance Method Summary collapse
Methods inherited from Base
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
#description ⇒ Object
22 23 24 |
# File 'lib/ors/commands/timestamps.rb', line 22 def description "Prints out contents of restart.timestamp on the app servers" end |
#execute ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ors/commands/timestamps.rb', line 7 def execute = ORS.config[:app_servers].map do |server| [ "[#{server}] ", execute_command(server, prepare_environment, %(cat restart.timestamp), :capture => true) ].join end.join("\n") puts unless ORS.config[:pretending] end |
#usage ⇒ Object
18 19 20 |
# File 'lib/ors/commands/timestamps.rb', line 18 def usage "./ors check [options]" end |