Class: InspecPlugins::Example::CliCommand

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

Overview

Note two-arg form

Instance Method Summary collapse

Instance Method Details

#controlObject



38
39
40
41
# File 'lib/inspec-plugin-example/cli.rb', line 38

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

#versionObject



21
22
23
24
25
# File 'lib/inspec-plugin-example/cli.rb', line 21

def version
  Inspec::Log.level = :debug if options[:debug]
  Inspec::Log.debug 'Example::Version debugging message'
  say("InSpec Example Plugin v#{Example::VERSION}")
end