cookbook

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2015 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Overview

Package cookbook reads and manipulates data from Chef cookbooks stored on disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cookbook

type Cookbook struct {
	Path    string
	Name    string
	Version string
}

A Cookbook is a Chef cookbook stored on disk.

func NewCookbook

func NewCookbook(cookbookPath string) (*Cookbook, error)

NewCookbook returns a Cookbook that is located at cookbookPath.

func (Cookbook) Files

func (cb Cookbook) Files() []string

Files returns the names of all cookbook files. Other files are ignored.

func (Cookbook) String

func (cb Cookbook) String() string

String returns the cookbook's name and version.

func (Cookbook) Strip

func (cb Cookbook) Strip() error

Strip removes all non-cookbook files from the cookbook.

Directories

Path Synopsis
Package metadata parses Chef cookbook metadata.
Package metadata parses Chef cookbook metadata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL