class ChefCLI::PolicyfileServices::Install
def initialize(policyfile: nil, ui: nil, root_dir: nil, overwrite: false, config: nil)
def initialize(policyfile: nil, ui: nil, root_dir: nil, overwrite: false, config: nil) @ui = ui @overwrite = overwrite @chef_config = config @policyfile_rel_path = policyfile || "Policyfile.rb" policyfile_full_path = File.expand_path(@policyfile_rel_path, root_dir) @storage_config = Policyfile::StorageConfig.new.use_policyfile(policyfile_full_path) @policyfile_content = nil @policyfile_compiler = nil end