mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
Move all dependency related classes into inspec/dependencies
Signed-off-by: Steven Danna <steve@chef.io>
This commit is contained in:
parent
2041a08aa2
commit
d779dd53ae
13 changed files with 6 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
# encoding: utf-8
|
||||
require 'inspec/vendor_index'
|
||||
require 'inspec/resolver'
|
||||
require 'inspec/dependencies/vendor_index'
|
||||
require 'inspec/dependencies/resolver'
|
||||
|
||||
module Inspec
|
||||
class Dependencies
|
||||
class DependencySet
|
||||
attr_reader :list, :vendor_path
|
||||
|
||||
# initialize
|
|
@ -4,7 +4,7 @@
|
|||
require 'logger'
|
||||
require 'molinillo'
|
||||
require 'inspec/errors'
|
||||
require 'inspec/requirement'
|
||||
require 'inspec/dependencies/requirement'
|
||||
|
||||
module Inspec
|
||||
class Resolver
|
|
@ -8,7 +8,7 @@ require 'inspec/polyfill'
|
|||
require 'inspec/fetcher'
|
||||
require 'inspec/source_reader'
|
||||
require 'inspec/metadata'
|
||||
require 'inspec/dependencies'
|
||||
require 'inspec/dependencies/dependency_set'
|
||||
|
||||
module Inspec
|
||||
class Profile # rubocop:disable Metrics/ClassLength
|
||||
|
@ -298,7 +298,7 @@ module Inspec
|
|||
|
||||
def load_dependencies
|
||||
cwd = File.directory?(@target) ? @target : nil
|
||||
res = Inspec::Dependencies.new(cwd, nil)
|
||||
res = Inspec::DependencySet.new(cwd, nil)
|
||||
res.vendor(metadata.dependencies)
|
||||
res
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue