Footprintless::CommandOptionsFactory - A factory for creating command options
version 1.17
This module creates command opitons 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.
There are four entites that are used for command options. All four have scalar values. Their defaults are:
hostname => undef, ssh => 'ssh -q', sudo_command => undef, sudo_username => undef, username => undef
Most (if not all) modules make use of these entities.
Constructs an instance of Footprintless::CommandOptionsFactory. The supported options are:
Footprintless::CommandOptionsFactory
A preconfigured instance of Footprintless::Localhost. Defaults to an instance with load_all() called.
Footprintless::Localhost
load_all()
The default ssh command to use if not supplied in the %options passed in to command_options(%options). Defaults to ssh -q.
%options
command_options(%options)
ssh -q
Removes hostname from %options if it is an alias for localhost, then forwards on to Fooptintless::Command::command_options.
hostname
Lucas Theisen <lucastheisen@pastdev.com>
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.
Please see those modules/websites for more information related to this module.
Footprintless
Footprintless::Command
To install Footprintless, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Footprintless
CPAN shell
perl -MCPAN -e shell install Footprintless
For more information on module installation, please visit the detailed CPAN module installation guide.