Sha256: 2169a4cf90557ea3362cb5cdea19f4cc1b44d457b6b369f3fea2c56796f44eff
Contents?: true
Size: 735 Bytes
Versions: 3
Compression:
Stored size: 735 Bytes
Contents
# frozen_string_literal: true # DeployRubygem module helper for rubygem module DeployRubygem # RakeTask to use with DeployRubygem projects module InspecCookbookTask def compliance # :nodoc: desc "@desc with #{__method__}" task :compliance do inspect_opts = [ '--input-file', File.join('compliance', 'inputs', "#{@task_name}.yml"), '--waiver-file', File.join('compliance', 'waivers', "#{@task_name}.yml"), '--reporter', "html:/tmp/html/#{@task_name}_rake_report.html" ] inspec_cmd = "inspec exec compliance/profiles/#{@task_name}-accept #{inspect_opts.join(' ')}" puts "inspec_cmd = #{inspec_cmd}" system(inspec_cmd) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems