Beam::Runner::Util - Utilities for Beam::Runner command classes
version 0.016
use Beam::Runner::Util qw( find_container_path ); my $path = find_container_path( $container_name );
This module has some shared utility functions for creating Beam::Runner::Command classes.
my %container = find_containers();
Returns a list of name and path pairs pointing to all the containers in the BEAM_PATH paths.
name
path
BEAM_PATH
my $path = find_container_path( $container_name );
Find the path to the given container. If the given container is already an absolute path, it is simply returned. Otherwise, the container is searched for in the directories defined by the BEAM_PATH environment variable.
If the container cannot be found, throws an exception with a user-friendly error message.
Beam::Runner, beam, Exporter
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2016 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Beam::Runner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Beam::Runner
CPAN shell
perl -MCPAN -e shell install Beam::Runner
For more information on module installation, please visit the detailed CPAN module installation guide.