NAME
Footprintless::CommandOptionsFactory - A factory for creating command options
VERSION
version 1.0
DESCRIPTION
This class provides a wrapper around Footprintless::Command::command_options
that will use Footprintless::Localhost
to determine if the hostname in the options is an alias for localhost. If so, it will remove hostname from the options to prevent network operations and allow for local implementation optimizations.
CONSTRUCTORS
new(%options)
Constructs an instance of Footprintless::CommandOptionsFactory
. The supported options are:
- localhost
-
A preconfigured instance of
Footprintless::Localhost
. Defaults to an instance withload_all()
called. - default_ssh
-
The default ssh command to use if not supplied in the
%options
passed in tocommand_options(%options)
. Defaults tossh -q
.
METHODS
command_options(%options)
Removes hostname
from %options
if it is an alias for localhost, then forwards on to Footprintless::Command::command_options
.
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.