Class: ORS::Commands::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/ors/commands/help.rb

Instance Method Summary collapse

Methods inherited from Base

#description, #help, #help_options, #setup, #usage

Methods included from Base::ClassMethods

#run, #run_without_setup

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

#parse_remote_and_or_branch

Instance Method Details

#executeObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/ors/commands/help.rb', line 5

def execute
  puts "Usage: ./ors <action> [environment=production] [options]\n\n=== Actions\nchanges       View changes between what is deployed and committed\ncheck         Prints out contents of restart.timestamp on the app servers\nconsole       Bring up a console on the console server\ndeploy        Update the code, run the migrations, and restart unicorn\nhelp          You're looking at it\nlogs          Show the last few log entries from the production servers\nmigrate       Runs the migrations on the migration server\nrestart       Retarts unicorn on the app servers\nrunner        Runs ruby code via Rails' runner on the console server\nsetup         Sets up the default environment on the servers\nstart         Starts up unicorn on the app servers\nstop          Stops unicorn on the app servers\nupdate        Updates the code on all servers\n\n=== Environments\nMust be one of: production demo staging\nDefaults to production.\n\n\#{help_options}\n  END\nend\n"