mitre / inspec_tools

A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
https://inspec-tools.mitre.org/
Other
91 stars 30 forks source link

Migrate to depend on the new inspect objects library #86

Closed aaronlippold closed 4 years ago

aaronlippold commented 4 years ago

https://github.com/inspec/inspec-objects

aaronlippold commented 4 years ago

@kevin-j-smith maybe we can merge this as part of your PR set. I think we should just get ahead of this before the next release of inspect makes stuff break :-)

lukemalinowski commented 4 years ago

I believe we still need inspec as we try to setup inspec_tools as a plugin for inspec. Which means that although we need to pull in the new inspec-objects repository we also need to pull in inspec.

NoMethodError: undefined method `plugin' for Inspec:Module
  /Users/lmalinowski/git/inspec_tools/lib/inspec_tools/plugin_cli.rb:25:in `<module:InspecToolsPlugin>'
  /Users/lmalinowski/git/inspec_tools/lib/inspec_tools/plugin_cli.rb:24:in `<module:InspecPlugins>'
  /Users/lmalinowski/git/inspec_tools/lib/inspec_tools/plugin_cli.rb:23:in `<top (required)>'
  /Users/lmalinowski/git/inspec_tools/lib/inspec_tools/cli.rb:9:in `require_relative'
  /Users/lmalinowski/git/inspec_tools/lib/inspec_tools/cli.rb:9:in `<top (required)>'
  inspec_tools:12:in `require'
  inspec_tools:12:in `<top (required)>'
lukemalinowski commented 4 years ago

If the plugin code is in inspec-core we would be okay. Since inspec-objects depends on inspec-core