Class: Hotdog::Commands::Help

Inherits:
BaseCommand show all
Defined in:
lib/hotdog/commands/help.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#application, #formatter, #logger, #options, #tags

Instance Method Summary collapse

Methods inherited from BaseCommand

#execute, #initialize

Constructor Details

This class inherits a constructor from Hotdog::Commands::BaseCommand

Instance Method Details

#run(args = []) ⇒ Object



8
9
10
11
# File 'lib/hotdog/commands/help.rb', line 8

def run(args=[])
  ruby = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["ruby_install_name"])
  exit(system(ruby, $0, "--help") ? 0 : 1)
end