Module: Chef::Knife::RunListOptions

Included in:
HitoriBootstrap, HitoriCook
Defined in:
lib/chef/knife/hitori/run_list_options.rb

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/chef/knife/hitori/run_list_options.rb', line 8

def self.included(receiver)
  receiver.class_eval do
    option :roles,
           :short => '-R ROLE1[,ROLE2]',
           :long  => '--roles ROLE1[,ROLE2]',
           :description => 'override run_list by roles'

    option :recipes,
           :long => '--recipes RECIPE1[,RECIPE2]',
           :description => 'override run_list by recipes'
  end
end