Sha256: 58611af44b45798d5e1b2622d175cee4986530f79782e27c812268410d89b9e1

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

# DeployRubygem module helper for rubygem
module DeployRubygem
  # RakeTask to use with DeployRubygem projects
  module KnifeCookbookTask
    def cookstyle # :nodoc:
      desc "@desc with #{__method__}"
      task cookstyle: %i[rubocop] do
        system('cookstyle')
      end
    end

    def build_cookbook # :nodoc:
      desc "@desc with #{__method__}"
      task build_cookbook: %i[chef_client clean_cookbook cookstyle] do
        system("knife cookbook upload #{@task_name}")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deploy_rubygem-0.60.47 lib/deploy_rubygem/rake/cookbook/knife.rb
deploy_rubygem-0.60.46 lib/deploy_rubygem/rake/cookbook/knife.rb
deploy_rubygem-0.60.45 lib/deploy_rubygem/rake/cookbook/knife.rb