SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-MooseX-Attribute-ENV rpm build for : OpenSuSE. For other distributions click perl-MooseX-Attribute-ENV.

Name : perl-MooseX-Attribute-ENV
Version : 0.02 Vendor : openSUSE
Release : 4.1 Date : 2017-03-17 19:44:32
Group : Development/Libraries/Perl Source RPM : perl-MooseX-Attribute-ENV-0.02-4.1.src.rpm
Size : 0.01 MB
Packager : http://bugs_opensuse_org
Summary : Set default of an attribute to a value from %ENV
Description :
This is a the Moose manpage attribute trait that you use when you want the
default value for an attribute to be populated from the %ENV hash. So, for
example if you have set the environment variable USERNAME = \'John\' you can
do:

package MyApp::MyClass;

use Moose;
use MooseX::Attribute::ENV;

has \'username\' => (is=>\'ro\', traits=>[\'ENV\']);

package main;

my $myclass = MyApp::MyClass->new();

print $myclass->username; # STDOUT => \'John\';

This is basically similar functionality to something like:

has \'attr\' => (
is=>\'ro\',
default=> sub {
$ENV{uc \'attr\'};
},
);

but this module has a few other features that offer merit, as well as being
a simple enough attribute trait that I hope it can serve as a learning
tool.

If the named key isn\'t found in %ENV, then defaults will execute as normal.

RPM found in directory: /vol/rzm3/linux-opensuse/distribution/leap/42.3/repo/oss/suse/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-MooseX-Attribute-ENV-0.02-4.1.noarch.rpm
     

Provides :
perl(Moose::Meta::Attribute::Custom::Trait::ENV)
perl(MooseX::Attribute::ENV)
perl-MooseX-Attribute-ENV

Requires :
perl(:MODULE_COMPAT_5.18.2)
perl(Moose) >= 0.48
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.18.2/MooseX
/usr/lib/perl5/vendor_perl/5.18.2/MooseX/Attribute
/usr/lib/perl5/vendor_perl/5.18.2/MooseX/Attribute/ENV.pm
/usr/lib/perl5/vendor_perl/5.18.2/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-MooseX-Attribute-ENV
/usr/share/doc/packages/perl-MooseX-Attribute-ENV/Changes
/usr/share/doc/packages/perl-MooseX-Attribute-ENV/MYMETA.json
/usr/share/doc/packages/perl-MooseX-Attribute-ENV/MYMETA.yml
/usr/share/doc/packages/perl-MooseX-Attribute-ENV/README
/usr/share/man/man3/MooseX::Attribute::ENV.3pm.gz

 
ICM