Class: ChefApply::Action::GenerateCookbookFromResource
- Inherits:
-
GenerateTempCookbook
- Object
- Base
- GenerateTempCookbook
- ChefApply::Action::GenerateCookbookFromResource
- Defined in:
- lib/chef_apply/action/generate_temp_cookbook.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from GenerateTempCookbook
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from GenerateTempCookbook
from_options, #initialize, #perform_action
Methods inherited from Base
#escape_windows_path, #initialize, #name, #notify, #perform_action, #run, #run_chef
Constructor Details
This class inherits a constructor from ChefApply::Action::GenerateTempCookbook
Instance Method Details
#generate ⇒ Object
74 75 76 77 78 79 80 |
# File 'lib/chef_apply/action/generate_temp_cookbook.rb', line 74 def generate type = config.delete :resource_type name = config.delete :resource_name props = config.delete :resource_properties ChefApply::Log.debug("Generating cookbook for ad-hoc resource #{type}[#{name}]") generated_cookbook.from_resource(type, name, props) end |