Class: ChefGen::Snippet::CookbookBase
- Inherits:
-
ChefGen::SnippetBase
- Object
- ChefGen::SnippetBase
- ChefGen::Snippet::CookbookBase
- Defined in:
- lib/chef_gen/snippet/cookbook_base.rb
Overview
creates the basic files that every cookbook should have each file is managed through a separate method to allow for people to mix this in but turn off just one file
Constant Summary collapse
- NAME =
the name of the snippet
'cookbook_base'
Instance Attribute Summary collapse
-
#:berks_sources(: berks_sources) ⇒ Array<String>
A list of cookbook sources.
-
#cookbook_gems ⇒ Hash<String,String>
A map of gem names to constraints.
-
#gem_sources ⇒ Array<String>
A list of gem sources.
Method Summary
Methods inherited from ChefGen::SnippetBase
Constructor Details
This class inherits a constructor from ChefGen::SnippetBase
Instance Attribute Details
#:berks_sources(: berks_sources) ⇒ Array<String>
Returns a list of cookbook sources.
|
# File 'lib/chef_gen/snippet/cookbook_base.rb', line 20
|
#cookbook_gems ⇒ Hash<String,String>
Returns a map of gem names to constraints.
|
# File 'lib/chef_gen/snippet/cookbook_base.rb', line 14
|
#gem_sources ⇒ Array<String>
Returns a list of gem sources.
|
# File 'lib/chef_gen/snippet/cookbook_base.rb', line 17
|