Sha256: 11c7c150dfe71bacc94bf7e01f78ee57eaa0b2362058afe8cb36098a6dec8bea

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

module ORS::Commands

  class Help < Base

    def execute
      puts <<-END
Usage: ./ors <action> [environment=production] [options]

=== Actions
help          You're looking at it
env           Print out the configuration
console       Bring up a console on the production servers
logs          Show the last few log entries from the production servers
exec          Executes a command (via the CMD environment variable) on the migration server
deploy        Update the code, run the migrations, and restart unicorn
setup         Sets up the default environment on the servers
update        Updates the code on all servers
migrate       Runs the migrations on the migration server
start         Starts up unicorn on the app servers
stop          Stops unicorn on the app servers
restart       Retarts unicorn on the app servers

=== Environments
Must be one of: production demo staging
Defaults to production.

=== Options
--pretend    (or -p)   Don't execute anything, just show me what you're going to do (default: false)
--no-gateway (or -ng)  Don't use a gateway (if you're inside the firewall)          (default: true)
      END
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ors-0.1.7 lib/ors/commands/help.rb
ors-0.1.5 lib/ors/commands/help.rb
ors-0.1.4 lib/ors/commands/help.rb
ors-0.1.3 lib/ors/commands/help.rb
ors-0.1.2 lib/ors/commands/help.rb
ors-0.1.1 lib/ors/commands/help.rb
ors-0.1.0 lib/ors/commands/help.rb