Class: Kriterion::CLI
- Inherits:
-
Object
- Object
- Kriterion::CLI
- Defined in:
- lib/kriterion/cli.rb,
lib/kriterion/cli/api.rb,
lib/kriterion/cli/worker.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.command ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/kriterion/cli.rb', line 5 def self.command @cmd ||= Cri::Command.define do name 'kriterion' usage 'kriterion <subcommand>' summary 'Exposes Puppet\'s compliance information in a REST API' flag :h, :help, 'show help for this command' do |value, cmd| puts cmd.help exit 0 end flag :d, :debug, 'Enable debug logging' flag nil, :trace, 'Print stacktraces' run do |opts, args, cmd| puts cmd.help exit 0 end end end |