lib/bolt/config/transport/base.rb in bolt-2.7.0 vs lib/bolt/config/transport/base.rb in bolt-2.8.0
- old
+ new
@@ -7,16 +7,16 @@
class Config
module Transport
class Base
attr_reader :input
- def initialize(data = {}, boltdir = nil)
+ def initialize(data = {}, project = nil)
assert_hash_or_config(data)
@input = data
@resolved = !Bolt::Util.references?(input)
@config = resolved? ? Bolt::Util.deep_merge(defaults, filter(input)) : defaults
- @boltdir = boltdir
+ @project = project
validate if resolved?
end
# Accessor methods
@@ -60,10 +60,10 @@
assert_hash_or_config(layer)
layer_data = layer.is_a?(self.class) ? layer.input : layer
Bolt::Util.deep_merge(acc, layer_data)
end
- self.class.new(merged, @boltdir)
+ self.class.new(merged, @project)
end
# Resolve any references in the input data, then remerge it with the defaults
# and validate all values
def resolve(plugins)