Sha256: 51bbc1fe61d9d4ada6d62f77af3bf60e53e298cd6840b4c2e0f8a708f78b8b83
Contents?: true
Size: 717 Bytes
Versions: 8
Compression:
Stored size: 717 Bytes
Contents
context = ChefCLI::Generator.context cookbook_dir = File.join(context.cookbook_root, context.cookbook_name) profile_dir = File.join(cookbook_dir, 'compliance', 'profiles', "#{context.new_file_basename}") control_dir = File.join(profile_dir, 'controls') directory control_dir do recursive true end template "#{profile_dir}/inspec.yml" do source 'compliance_profile_inspec.yml.erb' helpers(ChefCLI::Generator::TemplateHelper) variables( spdx_license: ChefCLI::Generator::TemplateHelper.license_long(context.license), profile_name: context.new_file_basename ) end template "#{control_dir}/example.rb" do source 'compliance_profile_control.rb.erb' helpers(ChefCLI::Generator::TemplateHelper) end
Version data entries
8 entries across 8 versions & 1 rubygems