Class: ChefGen::Snippet::CookbookBase

Inherits:
ChefGen::SnippetBase show all
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

Method Summary

Methods inherited from ChefGen::SnippetBase

#initialize

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.

Returns:

  • (Array<String>)

    a list of cookbook sources



# File 'lib/chef_gen/snippet/cookbook_base.rb', line 20

#cookbook_gemsHash<String,String>

Returns a map of gem names to constraints.

Returns:

  • (Hash<String,String>)

    a map of gem names to constraints



# File 'lib/chef_gen/snippet/cookbook_base.rb', line 14

#gem_sourcesArray<String>

Returns a list of gem sources.

Returns:

  • (Array<String>)

    a list of gem sources



# File 'lib/chef_gen/snippet/cookbook_base.rb', line 17