NAME
Footprintless - A utility for managing systems with minimal installs
VERSION
version 1.0
SYNOPSIS
use Footprintless;
my $footprintless = Footprintless->new();
$footprintless->overlay('dev.foo.overlay')->initialize();
$footprintless->service('dev.foo.service')->start();
DESCRIPTION
This module is used to initialize the configuration and provide a factory for some of the core modules.
CONSTRUCTORS
new(\%entity, %options)
Creates a new Footprintless factory. Available options are:
- entities
-
If supplied,
entitieswill serve as the configuration for this instance. - fpl_home
-
The root folder for footprintless configuration. Defaults to the
$FPL_HOMEenvironment variable if set,~/.footprintlessif not. - config_dirs
-
The root folder(s) for configuration entities. Defaults to the
$FPL_CONFIG_DIRSenvironment variable if set,$FPL_HOME/configif not.config_dirscan be a scalar (one directory), or an array ref if there is more than one directory. If set via the$FPL_CONFIG_DIRSenvironment variable, and you need more than one directory, use a;to delimit on windows, or a:to delimit on *nix (same as the$PATHvariable). - config_properties
-
The properties file(s) used for placeholder replacement for configuration entities. Defaults to the
$FPL_CONFIG_PROPSenvironment variable if set,$FPL_HOME/properties.plif not.config_propertiescan be a scalar (one file), or an array ref if there is more than one directory. If set via the$FPL_CONFIG_PROPSenvironment variable, and you need more than one directory, use a;to delimit on windows, or a:to delimit on *nix (same as the$PATHvariable). - command_runner
-
Sets the
command_runnerfor this instance. Must be an a subclass ofFootprintless::CommandRunner. - localhost
-
Sets the
localhostresolver for this instance. Must be an instance or subclass ofFootprintless::Localhost. - command_options_factory
-
Sets the
command_options_factoryfor this instance. Must be an instance or subclass ofFootprintless::CommandOptionsFactory.
METHODS
agent()
Returns the agent used by this instance.
command_options_factory()
Returns the command_options_factory used by this instance.
command_runner()
Returns the command_runner used by this instance.
deployment($coordinate, %options)
Returns a new instance of Footprintless::Deployment preconfigured to operate on the deployment at $coordinate. Supported options are
- command_options_factory
-
A
command_options_factoryto use instead of that which is supplied by this footprintless instance. - command_runner
-
A
command_runnerto use instead of that which is supplied by this footprintless instance. - localhost
-
A
localhostto use instead of that which is supplied by this footprintless instance. - resource_manager
-
A
resource_managerto use instead of that which is supplied by this footprintless instance.
entities()
Returns the Config::Entities that were resolved by this footprintless instance.
localhost()
Returns the localhost resolver used by this instance.
log($coordinate, %options)
Returns a new instance of Footprintless::Log preconfigured to operate on the log at $coordinate. Supported options are
- command_options_factory
-
A
command_options_factoryto use instead of that which is supplied by this footprintless instance. - command_runner
-
A
command_runnerto use instead of that which is supplied by this footprintless instance. - localhost
-
A
localhostto use instead of that which is supplied by this footprintless instance.
overlay($coordinate, %options)
Returns a new instance of Footprintless::Overlay preconfigured to operate on the overlay at $coordinate. Supported options are
- command_options_factory
-
A
command_options_factoryto use instead of that which is supplied by this footprintless instance. - command_runner
-
A
command_runnerto use instead of that which is supplied by this footprintless instance. - localhost
-
A
localhostto use instead of that which is supplied by this footprintless instance. - resource_manager
-
A
resource_managerto use instead of that which is supplied by this footprintless instance.
resource_manager()
Returns the resource_manager used by this instance.
service($coordinate, %options)
Returns a new instance of Footprintless::Service preconfigured to operate on the service at $coordinate. Supported options are
- command_options_factory
-
A
command_options_factoryto use instead of that which is supplied by this footprintless instance. - command_runner
-
A
command_runnerto use instead of that which is supplied by this footprintless instance. - localhost
-
A
localhostto use instead of that which is supplied by this footprintless instance.
AUTHOR
Lucas Theisen <lucastheisen@pastdev.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Lucas Theisen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
SEE ALSO
Please see those modules/websites for more information related to this module.