Class: ChefApply::Action::GenerateTempCookbook
- Inherits:
-
Base
- Object
- Base
- ChefApply::Action::GenerateTempCookbook
show all
- Defined in:
- lib/chef_apply/action/generate_temp_cookbook.rb
Instance Attribute Summary collapse
Attributes inherited from Base
#config, #target_host
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#name, #notify, #run
Constructor Details
Returns a new instance of GenerateTempCookbook.
38
39
40
41
|
# File 'lib/chef_apply/action/generate_temp_cookbook.rb', line 38
def initialize(options)
super(options)
@generated_cookbook ||= ChefApply::TempCookbook.new
end
|
Instance Attribute Details
#generated_cookbook ⇒ Object
Returns the value of attribute generated_cookbook.
24
25
26
|
# File 'lib/chef_apply/action/generate_temp_cookbook.rb', line 24
def generated_cookbook
@generated_cookbook
end
|
Class Method Details
.from_options(opts) ⇒ Object
Instance Method Details
#generate ⇒ Object
49
50
51
|
# File 'lib/chef_apply/action/generate_temp_cookbook.rb', line 49
def generate
raise NotImplemented
end
|
43
44
45
46
47
|
# File 'lib/chef_apply/action/generate_temp_cookbook.rb', line 43
def perform_action
notify(:generating)
generate
notify(:success)
end
|