App-local-lib-helper
view release on metacpan or search on metacpan
README.mkdn view on Meta::CPAN
[local::lib](http://search.cpan.org/perldoc?local::lib) and use that. If we can't detect a running [local::lib](http://search.cpan.org/perldoc?local::lib) and
this option is undef, we die with a message.
- helper_name
This is the name of the helper utility script. It defaults to 'localenv'.
- helper_permissions
These are the permissions the the helper utility script is set to. By default
we set the equivilent of 'chmod 755 [HELPER SCRIPT]'
# HELPERS
This distribution installs the following [local::lib](http://search.cpan.org/perldoc?local::lib) helpers
## localenv
This is a perl script that runs a single command in [local::lib](http://search.cpan.org/perldoc?local::lib) aware context.
You can use the `helper-name` option to set a different name.
lib/App/local/lib/helper.pm view on Meta::CPAN
}
sub _create_file {
my ($self, $filename, $permissions, $text) = @_;
open (my $fh, '>', $filename)
|| $self->error("Can't open $filename", $!);
print $fh $text;
close($fh);
chmod oct($permissions), $filename;
return $filename;
}
sub _find_or_create_lib_bindir_from {
my ($self, $target) = @_;
my $lib = File::Spec->catdir($target, 'lib', 'perl5');
my $bindir = File::Spec->catdir($target, 'bin');
mkdir $bindir unless(-e $bindir);
return ($lib, $bindir);
}
lib/App/local/lib/helper.pm view on Meta::CPAN
L<local::lib> and use that. If we can't detect a running L<local::lib> and
this option is undef, we die with a message.
=item helper_name
This is the name of the helper utility script. It defaults to 'localenv'.
=item helper_permissions
These are the permissions the the helper utility script is set to. By default
we set the equivilent of 'chmod 755 [HELPER SCRIPT]'
=back
=head1 HELPERS
This distribution installs the following L<local::lib> helpers
=head2 localenv
This is a perl script that runs a single command in L<local::lib> aware context.
script/local-lib-helper view on Meta::CPAN
L<local::lib> and use that. If we can't detect a running L<local::lib> and
this option is undef, we die with a message.
=item helper_name (--helper_name, -n)
This is the name of the helper utility script. It defaults to 'localenv'.
=item helper_permissions (--helper_permissions, -p)
These are the permissions the the helper utility script is set to. By default
we set the equivilent of 'chmod 755 [HELPER SCRIPT]'
=back
=head ALSO SEE
L<App::local::lib::helper>, L<App::local::lib::helper::rationale>
=head1 AUTHOR
John Napiorkowski C< <<jjnapiork@cpan.org>> >
( run in 0.261 second using v1.01-cache-2.11-cpan-496ff517765 )