class ElasticDot::Command::Help

Public Class Methods

addons() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# 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) click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# 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