class ChefCLI::Command::GeneratorCommands::Policyfile

def derive_policy_settings_from_args(new_file_path)

def derive_policy_settings_from_args(new_file_path)
  @new_file_basename = File.basename(new_file_path, ".rb")
  @policy_name = @new_file_basename
  @policy_run_list = "#{policy_name}::default"
  given_policy_dirname = File.expand_path(File.dirname(new_file_path))
  @policyfile_dir =
    if chef_repo_mode? && (given_policy_dirname == Dir.pwd)
      File.expand_path("policyfiles")
    else
      given_policy_dirname
    end
end