Method: InspecPlugins::InspecToolsPlugin::CliCommand#inspec2xccdf
- Defined in:
- lib/inspec_tools/plugin_cli.rb
#inspec2xccdf ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/inspec_tools/plugin_cli.rb', line 60 def inspec2xccdf json = File.read([:inspec_json]) inspec_tool = InspecTools::Inspec.new(json) attr_hsh = YAML.load_file([:attributes]) xccdf = inspec_tool.to_xccdf(attr_hsh) File.write([:output], xccdf) end |