lib/chef-cli/policyfile_compiler.rb in chef-cli-5.6.14 vs lib/chef-cli/policyfile_compiler.rb in chef-cli-5.6.16
- old
+ new
@@ -40,11 +40,11 @@
# Cookbooks from these sources lock that cookbook to exactly one version
SOURCE_TYPES_WITH_FIXED_VERSIONS = %i{git path}.freeze
def self.evaluate(policyfile_string, policyfile_filename, ui: nil, chef_config: nil)
- compiler = new(ui: ui, chef_config: chef_config)
+ compiler = new(ui:, chef_config:)
compiler.evaluate_policyfile(policyfile_string, policyfile_filename)
compiler
end
def_delegator :@dsl, :name
@@ -59,10 +59,10 @@
attr_reader :storage_config
attr_reader :install_report
def initialize(ui: nil, chef_config: nil)
@storage_config = Policyfile::StorageConfig.new
- @dsl = Policyfile::DSL.new(storage_config, chef_config: chef_config)
+ @dsl = Policyfile::DSL.new(storage_config, chef_config:)
@artifact_server_cookbook_location_specs = {}
@merged_graph = nil
@ui = ui || UI.null