Skip to content

Commit

Permalink
Updates to Cinc patches
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Albertson <[email protected]>
  • Loading branch information
ramereth committed Dec 7, 2023
1 parent 31aca28 commit a564bd6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/chef-cli/command/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def needs_version?(params)

def check_license_acceptance
# TODO - is this the right version?
LicenseAcceptance::Acceptor.check_and_persist!("chef-workstation", ChefCLI::VERSION.to_s)
LicenseAcceptance::Acceptor.check_and_persist!("cinc-workstation", ChefCLI::VERSION.to_s)
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/chef-cli/command/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Export < Base
`#{ChefCLI::Dist::EXEC} export` creates a #{ChefCLI::Dist::ZERO_PRODUCT} compatible #{ChefCLI::Dist::INFRA_PRODUCT} repository containing the
cookbooks described in a Policyfile.lock.json. The exported repository also contains
a .chef/config.rb which configures #{ChefCLI::Dist::INFRA_CLIENT_PRODUCT} to apply your policy. Once the
a .cinc/config.rb which configures #{ChefCLI::Dist::INFRA_CLIENT_PRODUCT} to apply your policy. Once the
exported repo is copied to the target machine, you can apply the policy to the
machine with:
Expand Down
4 changes: 2 additions & 2 deletions lib/chef-cli/policyfile_services/export_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def policy_groups_dir
end

def dot_chef_dir
File.join(export_dir, ".chef")
File.join(export_dir, ".cinc")
end

def policyfile_repo_item_path
Expand All @@ -390,7 +390,7 @@ def policy_group_repo_item_path
end

def dot_chef_staging_dir
File.join(staging_dir, ".chef")
File.join(staging_dir, ".cinc")
end

def cookbook_artifacts_staging_dir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
.chef
.chef/*.pem
.chef/encrypted_data_bag_secret
.cinc
.cinc/*.pem
.cinc/encrypted_data_bag_secret
<%- if policy_only -%>
cookbooks/**
!cookbooks/README.md
Expand Down

0 comments on commit a564bd6

Please sign in to comment.