NAME

Net::Kubernetes::Role::ResourceCreator - Role to allow creation of resources from either objects or files.

VERSION

version 1.02

METHODS

create({OBJECT})

Creates a new Net::Kubernetes::Resource (subtype determined by $BNJECT->{kind})

create_from_file(PATH_TO_FILE) (accepts either JSON or YAML files)

Create from file is really just a short cut around something like:

my $object = YAML::LoadFile(PATH_TO_FILE);
$kube->create($object);

AUTHOR

Dave Mueller <dave@perljedi.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Dave Mueller.

This is free software, licensed under:

The MIT (X11) License

SEE ALSO

Please see those modules/websites for more information related to this module.

CONSUMES