Class: Inspec::Plugin::V2::Installer::InstalledVendorSet
- Inherits:
-
Gem::Resolver::VendorSet
- Object
- Gem::Resolver::VendorSet
- Inspec::Plugin::V2::Installer::InstalledVendorSet
- Defined in:
- lib/inspec/plugin/v2/installer.rb
Overview
This class alows us to build a Vendor set with the gems that are already included either with Ruby or with the InSpec install
Instance Method Summary collapse
-
#initialize ⇒ InstalledVendorSet
constructor
A new instance of InstalledVendorSet.
Constructor Details
#initialize ⇒ InstalledVendorSet
Returns a new instance of InstalledVendorSet.
387 388 389 390 391 392 393 |
# File 'lib/inspec/plugin/v2/installer.rb', line 387 def initialize super Gem::Specification.find_all do |spec| @specs[spec.name] = spec @directories[spec] = spec.gem_dir end end |