Class: PuppetCheck::CLI
- Inherits:
-
Object
- Object
- PuppetCheck::CLI
- Defined in:
- lib/puppet-check/cli.rb
Overview
the command line interface for PuppetCheck
Class Method Summary collapse
-
.run(args) ⇒ Object
run method for the cli.
Class Method Details
.run(args) ⇒ Object
run method for the cli
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/puppet-check/cli.rb', line 6 def self.run(args) # gather the user arguments settings = parse(args) # target cwd if no paths input as variadic args = [Dir.pwd] if args.empty? # run PuppetCheck with specified paths PuppetCheck.new.run(settings, args) end |