Class: Inspec::Plugin::V2::Installer::InstalledVendorSet

Inherits:
Gem::Resolver::VendorSet
  • Object
show all
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

Constructor Details

#initializeInstalledVendorSet

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