class ChefCLI::PolicyfileServices::Push
def initialize(policyfile: nil, ui: nil, policy_group: nil, config: nil, root_dir: nil)
def initialize(policyfile: nil, ui: nil, policy_group: nil, config: nil, root_dir: nil) @root_dir = root_dir @ui = ui @config = config @policy_group = policy_group 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) @http_client = nil @policy_data = nil end