Sha256: ec13f7ae58cd0d9b61ae6425fd45d94fffd9ee04c18b19bcbe2092ca1f793769
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true # DeployRubygem module helper for rubygem module DeployRubygem # RakeTask to use with DeployRubygem projects module ChefCookbookTask def chef_client # :nodoc: desc "@desc with #{__method__}" task :chef_client do system('sudo chef-client') end end def install_policy # :nodoc: desc "@desc with #{__method__}" task install_policy: %i[build_cookbook] do system('chef install Policyfile.rb') end end def release_policy # :nodoc: desc "@desc with #{__method__}" task release_policy: %i[clean_cookbook install_policy] do system('chef push prod Policyfile.lock.json') end end def install_cookbook # :nodoc: desc "@desc with #{__method__}" task :install_cookbook do system("sudo chef-client -o #{@task_name}") end end def report # :nodoc: desc "@desc with #{__method__}" task :report do system("sudo chef-client -o #{@task_name}::compile_report") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems