Acme::Chef::Recipe - Internal module used by Acme::Chef


Acme-Chef documentation  | view source Contained in the Acme-Chef distribution.

Index


NAME

Top

Acme::Chef::Recipe - Internal module used by Acme::Chef

SYNOPSIS

Top

  use Acme::Chef;

DESCRIPTION

Top

Please see Acme::Chef;

METHODS

This is list of methods in this package.

new

Acme::Chef::Recipe constructor. Arguments are interpreted as key/value pairs and used as object attributes.

execute

Executes the recipe (program). First argument should be a reference to a hash of sous-recipes.

first_bowl

Returns the first bowl of the recipe.

require_ingredient

First argument must be an ingredient object. Second may be a string indicating the location of the requirement. Throws a fatal error if the ingredient is not present.

output

Mutator for the Recipe output.

require_bowl

First argument must be a number of bowls. Additional bowls are added to the recipe if it currently has less than this number of bowls.

require_dish

First argument must be a number of dishes. Additional dishes are added to the recipe if it currently has less than this number of dishes.

recipe_name

Mutator for the recipe name.

compile

Tries to compile the recipe. Returns 0 on error or if the recipe was already compiled. Returns the compiled recipe if the compilation succeeded.

AUTHOR

Top

Steffen Mueller.

Chef designed by David Morgan-Mar.

COPYRIGHT AND LICENSE

Top


Acme-Chef documentation  | view source Contained in the Acme-Chef distribution.