Test::BrewBuild::BrewCommands - Provides Windows/Unix *brew command translations for Test::BrewBuild
Returns a new Test::BrewBuild::BrewCommands object.
Returns perlbrew if on Unix, and the full executable path for berrybrew.exe if on Windows.
perlbrew
berrybrew.exe
Returns the string result of *brew available.
*brew available
Fetches, then caches the results of '*brew available'. This is due to the fact that perlbrew does an Internet lookup for the information, and berrybrew will shortly as well.
The cache is rebuilt on each new program run.
Parameters:
$reset
Bool, optional. Set to a true value to flush out the cache so it will be re-initialized.
Takes the output of *brew available in a string form. Returns the currently installed versions, formatted in a platform specific manner.
Returns the current version of perl we're using. $info is the output from info().
$info
info()
Similar to installed(), but returns all perls available. If $legacy is false, we'll only return perl versions 5.8.0+.
installed()
$legacy
perl
5.8.0+
Returns the current OS's specific *brew install command.
*brew install
Returns the current OS's specific *brew remove command.
*brew remove
Returns 0 if on Unix, and 1 if on Windows.
Steve Bertrand, <steveb at cpan.org>
<steveb at cpan.org>
Copyright 2017 Steve Bertrand.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Test::BrewBuild, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::BrewBuild
CPAN shell
perl -MCPAN -e shell install Test::BrewBuild
For more information on module installation, please visit the detailed CPAN module installation guide.