The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CHEF::REST::Client::cookbook

VERSION

1.0

SYNOPSIS

 my $obj = new CHEF::REST::Client::cookbook( 'name'       => $cookbook_name
                                           , 'url'        => $cookbook_url
                                           , 'versions'   => $versions
                                           , 'libraries'  => $libraries
                                           , 'providers'  => $providers
                                           , 'resources'  => $resources
                                           , 'root_files' => $root_files
                                           , 'version'    => $cookbook_version
                                           , 'templates'  => $templates
                                           , 'files'      => $files
                                           , 'attributes' => $attributes
                                           , 'recipes'    => $recipes
                                           , 'metadata'   => $metadata );
   

DESCRIPTION

used internally by other classes like CHEF::REST::Client::cookbooks

METHODS

Constructor

returns new CHEF::REST::Client::cookbook object

url( $url )

set 'url' property value if speicfied else return previous value;

name( $name )

set 'name' property value if speicfied else return previous value;

version( $version )

set 'version' property value if speicfied else return previous value;

libraries( $libraries )

set 'libraries' value if speicfied else return previous value;

providers( $providers )

set 'providers' value if speicfied else return previous value;

resources( $resources )

set 'resources' value if speicfied else return previous value;

root_files( $root_files )

set 'root_files' value if speicfied else return previous value;

templates( $templates )

set 'templates' value if speicfied else return previous value;

files( $files )

set 'filess' value if speicfied else return previous value;

attributes( $attributes )

$attributes is converted to CHEF::REST::Client::attributes class and is assigned to 'attributes' property returns values of 'attributes' property if no argument is given.

recipes( $recipes )

set 'recipes' value if speicfied else return previous value;

metadata( $metadata )

set 'metadata' value if speicfied else return previous value;

versions( $versions )

set 'versions' value if speicfied else return previous value; $versions is converted to CHEF::REST::Client::coookbook_versions class

KNOWN BUGS

SUPPORT

open a github ticket or email comments to Bhavin Patel <bpatel10@nyit.edu>

COPYRIGHT AND LICENSE

This Software is free to use , licensed under : The Artisic License 2.0 (GPL Compatible)