NAME

Pantry::Role::Runlist - A role to manage entries in a run_list

VERSION

version 0.012

DESCRIPTION

This is a Moose::Role that provides a run_list attribute and associated handlers to the class that consumes it.

METHODS

run_list

for my $item ( $node->run_list ) { ... }

Returns a list of items in the run_list

in_run_list

if ( $node->in_run_list("recipe[nginx]") ) { ... }

Tests whether an item is contained in the run_list.

append_to_run_list

$node->append_to_run_list( @items );

Appends a list of items to the run_list.

remove_from_run_list

$node->remove_from_run_list( @items );

Removes a list of items from the run_list.

AUTHOR

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by David Golden.

This is free software, licensed under:

The Apache License, Version 2.0, January 2004