Class: Ploy::Command::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/ploy/command/help.rb

Instance Method Summary collapse

Instance Method Details

#helpObject



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/ploy/command/help.rb', line 9

def help
  return <<helptext
usage: ploy [command] [options]

Commands:
  publish         Package the current git repository and send to S3
  install         Pull a deployment from S3 and install on current system
  bless           Mark a package as tested for production use
  list            List published packages
  help            Show helps

helptext
end

#run(argv) ⇒ Object



6
7
8
# File 'lib/ploy/command/help.rb', line 6

def run(argv)
  puts Ploy::Command.lookup(argv.shift).help
end