Module: DeployRubygem::KnifeCookbookTask
- Included in:
- RakeCookbookTask
- Defined in:
- lib/deploy_rubygem/rake/cookbook/knife.rb
Overview
RakeTask to use with DeployRubygem projects
Instance Method Summary collapse
-
#build_cookbook ⇒ Object
:nodoc:.
-
#cookstyle ⇒ Object
:nodoc:.
Instance Method Details
#build_cookbook ⇒ Object
:nodoc:
14 15 16 17 18 19 |
# File 'lib/deploy_rubygem/rake/cookbook/knife.rb', line 14 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 |
#cookstyle ⇒ Object
:nodoc:
7 8 9 10 11 12 |
# File 'lib/deploy_rubygem/rake/cookbook/knife.rb', line 7 def cookstyle # :nodoc: desc "@desc with #{__method__}" task cookstyle: %i[rubocop] do system('cookstyle') end end |