Class: Appfront::Command::Help
- Defined in:
- lib/appfront/command/help.rb
Class Method Summary collapse
- .clusters ⇒ Object
- .deploys ⇒ Object
- .method_missing(m, *args, &block) ⇒ Object
- .providers ⇒ Object
- .ps ⇒ Object
- .root_help ⇒ Object
Class Method Details
.clusters ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/appfront/command/help.rb', line 30 def self.clusters puts "Clusters commands:\n\nclusters:create -p [provider] [NAME] [type] [region] # create a new cluster\nclusters:rm [cluster uuid] # permanently destroy a cluster\nclusters:info [cluster uuid] # show detailed cluster information\nclusters:list [cluster uuid] # show clusters list\n HELP\nend\n" |
.deploys ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/appfront/command/help.rb', line 19 def self.deploys puts "Deploys commands:\n\ndeploys:destroy -d [deploy uuid] # permanently destroy an deploy\ndeploys:info -d [deploy uuid] # show detailed deploy information\ndeploys:list # show deploys list\ndeploys:attach -d [deploy uuid] [cluster uuid] # attach cluster to a deploy\n HELP\nend\n" |
.method_missing(m, *args, &block) ⇒ Object
62 63 64 65 66 67 |
# File 'lib/appfront/command/help.rb', line 62 def self.method_missing(m, *args, &block) unless self.respond_to? m puts "Invalid command: #{m}" exit 1 end end |
.providers ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/appfront/command/help.rb', line 41 def self.providers puts "Providers commands:\n\nproviders:connect -p [amazon|digitalocean] -a access_key -s secret_key # connect to the choosen provider\nproviders:disconnect # disconnect from provider\n HELP\nend\n" |
.ps ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/appfront/command/help.rb', line 51 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:reload # 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 |
# File 'lib/appfront/command/help.rb', line 2 def self.root_help puts "Usage: appfront COMMAND [-d DEPLOY] [command-specific-options]\n\nPrimary help topics, type \"appfront help TOPIC\" for more details:\n\ndeploys # manage deploys\nclusters # manage clusters\nproviders # manager connection with Amazon or DigitalOcean\n\nAdditional topics:\n\nhelp # list commands and display help\nversion # display version\n HELP\nend\n" |