Class: Example::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/inspec-plugin-example/cli.rb

Instance Method Summary collapse

Instance Method Details

#controlObject



24
25
26
27
# File 'lib/inspec-plugin-example/cli.rb', line 24

def control
  Inspec::Log.level = :debug if options[:debug]
  Example::Control.print
end

#versionObject



14
15
16
# File 'lib/inspec-plugin-example/cli.rb', line 14

def version
  say("InSpec Example Plugin v#{Example::VERSION}")
end