Graham Ollis > Clustericious-Config > Clustericious::Config::Helpers

Download:
Clustericious-Config-0.29.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.29   Source  

NAME ^

Clustericious::Config::Helpers - Helpers for clustericious config files.

VERSION ^

version 0.29

SYNOPSIS ^

 ---
 % extend_config 'SomeOtherConfig';

DESCRIPTION ^

This module provides the functions available in all configuration files using Clustericious::Config.

FUNCTIONS ^

extends_config $config_name, %arguments

Extend the config using another config file.

get_password

Prompt for a password. This will prompt the user the first time it is encountered for a password.

home( [ $user ] )

Return the given users' home directory, or if no user is specified return the calling user's home directory.

file( @list )

The file shortcut from Path::Class, if it is installed.

dir( @list )

The dir shortcut from Path::Class, if it is installed.

hostname

The system hostname (uses Sys::Hostname)

hostname_full

The system hostname in full, including the domain, if it can be determined (uses Sys::Hostname).

json $ref

Encode the given hash or list reference.

yaml $ref

Encode the given hash or list reference.

SEE ALSO ^

Clustericious::Config, Clustericious

AUTHOR ^

original author: Brian Duggan

current maintainer: Graham Ollis <plicease@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by NASA GSFC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: