lib/bolt_spec/run.rb in bolt-2.7.0 vs lib/bolt_spec/run.rb in bolt-2.8.0
- old
+ new
@@ -124,29 +124,29 @@
end
JSON.parse(result.to_json)
end
class BoltRunner
- # Creates a temporary boltdir so no settings are picked up
- # WARNING: puppetdb config and orch config which do not use the boltdir may
+ # Creates a temporary project so no settings are picked up
+ # WARNING: puppetdb config and orch config which do not use the project may
# still be loaded
def self.with_runner(config_data, inventory_data)
- Dir.mktmpdir do |boltdir_path|
- runner = new(Bolt::Util.deep_clone(config_data), Bolt::Util.deep_clone(inventory_data), boltdir_path)
+ Dir.mktmpdir do |project_path|
+ runner = new(Bolt::Util.deep_clone(config_data), Bolt::Util.deep_clone(inventory_data), project_path)
yield runner
end
end
- def initialize(config_data, inventory_data, boltdir_path)
+ def initialize(config_data, inventory_data, project_path)
@config_data = config_data || {}
@inventory_data = inventory_data || {}
- @boltdir_path = boltdir_path
+ @project_path = project_path
@analytics = Bolt::Analytics::NoopClient.new
end
def config
- @config ||= Bolt::Config.new(Bolt::Boltdir.new(@boltdir_path), @config_data)
+ @config ||= Bolt::Config.new(Bolt::Project.new(@project_path), @config_data)
end
def inventory
@inventory ||= Bolt::Inventory.create_version(@inventory_data, config.transport, config.transports, plugins)
end
@@ -163,10 +163,10 @@
end
def pal
@pal ||= Bolt::PAL.new(config.modulepath,
config.hiera_config,
- config.boltdir.resource_types,
+ config.project.resource_types,
config.compile_concurrency)
end
def resolve_targets(target_spec)
@inventory.get_targets(target_spec).map(&:name)