Method: InspecPlugins::InspecToolsPlugin::CliCommand#inspec2ckl

Defined in:
lib/inspec_tools/plugin_cli.rb

#inspec2cklObject



115
116
117
118
119
120
121
122
# File 'lib/inspec_tools/plugin_cli.rb', line 115

def inspec2ckl
   = '{}'
  if !options[:metadata].nil?
     = File.read(options[:metadata])
  end
  ckl = InspecTools::Inspec.new(File.read(options[:inspec_json]), ).to_ckl
  File.write(options[:output], ckl)
end