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 "Addons commands:\n\naddons:list # list all available addons\naddons:add ADDON # install an addon\naddons:remove ADDON1 [ADDON2 ...] # uninstall one or more addons\n HELP\nend\n" |
.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 "Apps commands:\n\napps:create [NAME] # create a new app\napps:destroy # permanently destroy an app\napps:info # show detailed app information\napps:open # open the app in a web browser\napps:list # show app list\n HELP\nend\n" |
.config ⇒ Object
64 65 66 67 68 69 70 71 72 |
# File 'lib/elasticdot/command/help.rb', line 64 def self.config puts "Config commands:\n\nconfig:get KEY # display a config value for an app\nconfig:set KEY1=VALUE1 [KEY2=VALUE2 ...] # set one or more config vars\nconfig:unset KEY1 [KEY2 ...] # unset one or more config vars\n HELP\nend\n" |
.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 "DB commands:\n\ndb:promote # sets DATABASE as your DATABASE_URL\ndb:dump # print DATABASE dump to stdout\ndb:console # open mysql console for DATABASE\ndb:import # import dump file to DATABASE\ndb:create # create new database\ndb:destroy # destroy DATABASE\ndb:info # show info for DATABASE\ndb:list # list all databases\n HELP\nend\n" |
.domains ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'lib/elasticdot/command/help.rb', line 44 def self.domains puts "Domains commands:\n\ndomains:add DOMAIN # add a custom domain to an app\ndomains:clear # remove all custom domains from an app\ndomains:remove DOMAIN # remove a custom domain from an app\n HELP\nend\n" |
.keys ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/elasticdot/command/help.rb', line 54 def self.keys puts "Keys commands:\n\nkeys:add [KEY] # add a key for the current user\nkeys:clear # remove all authentication keys from the current user\nkeys:remove KEY # remove a key from the current user\n HELP\nend\n" |
.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 "PS commands:\n\nps:resize web=TIER # resize dot to the given tier\nps:scale web=N [mode=scaling|manual] # scale dots by the given amount\nps:stop # stop all dots\nps:restart # restart all dots\n HELP\nend\n" |
.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 "Usage: elasticdot COMMAND [--app APP] [command-specific-options]\n\nPrimary help topics, type \"elasticdot help TOPIC\" for more details:\n\napps # manage apps\nkeys # manage authentication keys\nconfig # manage app config vars\ndomains # manage custom domains\ndb # manage databases\naddons # manage addon resources\n\nAdditional topics:\n\nhelp # list commands and display help\nversion # display version\n HELP\nend\n" |