Move all dependency related classes into inspec/dependencies

Signed-off-by: Steven Danna <steve@chef.io>
This commit is contained in:
Steven Danna 2016-08-18 21:29:25 +01:00 committed by Christoph Hartmann
parent 2041a08aa2
commit d779dd53ae
13 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -4,7 +4,7 @@
require 'logger'
require 'molinillo'
require 'inspec/errors'
require 'inspec/requirement'
require 'inspec/dependencies/requirement'
module Inspec
class Resolver

View file

@ -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