David Golden > Pantry-0.012 > Pantry::Model::DataBag

Download:
Pantry-0.012.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.012   Source  

NAME ^

Pantry::Model::DataBag - Pantry data model for Chef data bags

VERSION ^

version 0.012

DESCRIPTION ^

Under development.

ATTRIBUTES ^

attributes

This attribute holds data bag attribute data as key-value pairs. Keys may be separated by a period to indicate nesting (literal periods must be escaped by a backslash). Values should be scalars or array references.

METHODS ^

set_attribute

  $role->set_attribute("shell", "/bin/bash");

Sets the role default attribute for the given key to the given value.

get_attribute

  my $port = $role->get_attribute("shell");

Returns the bag attribute for the given key.

delete_attribute

  $role->delete_attribute("shell");

Deletes the bag attribute for the given key.

save

Saves the node to a file in the pantry. If the private _path attribute has not been set, an exception is thrown.

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
syntax highlighting: