Method: Inspec::Resources::Cmd#initialize
- Defined in:
- lib/resources/command.rb
#initialize(cmd) ⇒ Cmd
Returns a new instance of Cmd.
25 26 27 28 29 30 |
# File 'lib/resources/command.rb', line 25 def initialize(cmd) if cmd.nil? raise 'InSpec `command` was called with `nil` as the argument. This is not supported. Please provide a valid command instead.' end @command = cmd end |