lib/milestoner/configuration/transformers/build/template_paths.rb in milestoner-17.11.0 vs lib/milestoner/configuration/transformers/build/template_paths.rb in milestoner-18.0.0
- old
+ new
@@ -12,20 +12,20 @@
class TemplatePaths
include Dry::Monads[:result]
def initialize key = :build_template_paths,
default: Pathname(__dir__).join("../../../templates"),
- xdg_config: Runcom::Config.new("milestoner/templates")
+ xdg: Runcom::Config.new("milestoner/templates")
@key = key
@default = default
- @xdg_config = xdg_config
+ @xdg = xdg
end
- def call(attributes) = Success attributes.merge!(key => xdg_config.all.append(default))
+ def call(attributes) = Success attributes.merge!(key => xdg.all.append(default))
private
- attr_reader :key, :default, :xdg_config
+ attr_reader :key, :default, :xdg
end
end
end
end
end