Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathIsCookbook ¶
Types ¶
type BerksCookbook ¶
type BerksCookbook struct { Branch string `json:"branch"` Name string `json:"name"` Git string `json:"git"` Path string `json:"path"` Ref string `json:"ref"` Revision string `json:"revision"` Tag string `json:"tag"` }
func (*BerksCookbook) String ¶
func (c *BerksCookbook) String() string
type BerksFile ¶
type BerksFile struct {
Cookbooks map[string]BerksCookbook
}
func BerksFromFile ¶
Read a berkshelf file and return a berks struct
type Cookbook ¶
type Cookbook struct { *fastfood.Helpers Berks BerksFile Dependencies map[string]CookbookDependency Name string Path string Target OSTarget Year int }
func NewCookbook ¶
Returns a new empty cookbook
func NewCookbookFromPath ¶
Given a cookbook path, return a cookbook struct pre-populated
func (*Cookbook) AppendDependencies ¶
func (c *Cookbook) AppendDependencies(dependencies map[string]CookbookDependency) []string
Returns a list of dependencies that were written
func (*Cookbook) ParseMetadata ¶
type CookbookDependency ¶ added in v0.3.0
func (*CookbookDependency) String ¶ added in v0.3.0
func (d *CookbookDependency) String() string
type Options ¶
type Options struct { BerksDeps map[string]BerksCookbook `json:"berks_dependencies"` Dependencies map[string]CookbookDependency `json:"dependencies"` Directories []string `json:"directories"` Files map[string]string `json:"files"` Partials []string }
func NewOptions ¶
Given the framework information create the framework stencil
Click to show internal directories.
Click to hide internal directories.