Class: PuppetHerald::CLI
- Inherits:
-
Object
- Object
- PuppetHerald::CLI
- Defined in:
- lib/puppet-herald/cli.rb
Overview
A CLI class
Instance Method Summary collapse
-
#initialize ⇒ CLI
constructor
Initialize CLI.
-
#run!(argv = ARGV) ⇒ Integer
Executes an Herald app from CLI.
Constructor Details
#initialize ⇒ CLI
Initialize CLI
12 13 14 |
# File 'lib/puppet-herald/cli.rb', line 12 def initialize self end |
Instance Method Details
#run!(argv = ARGV) ⇒ Integer
Executes an Herald app from CLI
20 21 22 23 24 25 26 |
# File 'lib/puppet-herald/cli.rb', line 20 def run!(argv = ARGV) PuppetHerald.rackenv = parse_or_kill argv, 2 run_or_kill , 1 Kernel.exit 0 end |