Class: ElasticDot::Command::Help
- Defined in:
- lib/elasticdot/command/help.rb
Class Method Summary collapse
- .addons ⇒ Object
- .apps ⇒ Object
- .config ⇒ Object
- .db ⇒ Object
- .domains ⇒ Object
- .keys ⇒ Object
- .method_missing(m, *args, &block) ⇒ Object
- .ps ⇒ Object
- .root_help ⇒ Object
Class Method Details
.addons ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'lib/elasticdot/command/help.rb', line 34 def self.addons puts <<-HELP Addons commands: addons:list # list all available addons addons:add ADDON # install an addon addons:remove ADDON1 [ADDON2 ...] # uninstall one or more addons HELP end |
.apps ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/elasticdot/command/help.rb', line 22 def self.apps puts <<-HELP Apps commands: apps:create [NAME] # create a new app apps:destroy # permanently destroy an app apps:info # show detailed app information apps:open # open the app in a web browser apps:list # show app list HELP end |
.config ⇒ Object
64 65 66 67 68 69 70 71 72 |
# File 'lib/elasticdot/command/help.rb', line 64 def self.config puts <<-HELP Config commands: config:get KEY # display a config value for an app config:set KEY1=VALUE1 [KEY2=VALUE2 ...] # set one or more config vars config:unset KEY1 [KEY2 ...] # unset one or more config vars HELP end |
.db ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/elasticdot/command/help.rb', line 85 def self.db puts <<-HELP DB commands: db:promote # sets DATABASE as your DATABASE_URL db:dump # print DATABASE dump to stdout db:console # open mysql console for DATABASE db:import # import dump file to DATABASE db:create # create new database db:destroy # destroy DATABASE db:info # show info for DATABASE db:list # list all databases HELP end |
.domains ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'lib/elasticdot/command/help.rb', line 44 def self.domains puts <<-HELP Domains commands: domains:add DOMAIN # add a custom domain to an app domains:clear # remove all custom domains from an app domains:remove DOMAIN # remove a custom domain from an app HELP end |
.keys ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/elasticdot/command/help.rb', line 54 def self.keys puts <<-HELP Keys commands: keys:add [KEY] # add a key for the current user keys:clear # remove all authentication keys from the current user keys:remove KEY # remove a key from the current user HELP end |
.method_missing(m, *args, &block) ⇒ Object
100 101 102 103 104 105 |
# File 'lib/elasticdot/command/help.rb', line 100 def self.method_missing(m, *args, &block) unless self.respond_to? m puts "Invalid command: #{m}" exit 1 end end |
.ps ⇒ Object
74 75 76 77 78 79 80 81 82 83 |
# File 'lib/elasticdot/command/help.rb', line 74 def self.ps puts <<-HELP PS commands: ps:resize web=TIER # resize dot to the given tier ps:scale web=N [mode=scaling|manual] # scale dots by the given amount ps:stop # stop all dots ps:restart # restart all dots HELP end |
.root_help ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/elasticdot/command/help.rb', line 2 def self.root_help puts <<-HELP Usage: elasticdot COMMAND [--app APP] [command-specific-options] Primary help topics, type "elasticdot help TOPIC" for more details: apps # manage apps keys # manage authentication keys config # manage app config vars domains # manage custom domains db # manage databases addons # manage addon resources Additional topics: help # list commands and display help version # display version HELP end |