perl-MooseX-FileAttribute-0.03-alt1.noarch.rpm


Advertisement

Description

perl-MooseX-FileAttribute - sugar for classes that have file or directory attributes

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-MooseX-FileAttribute
Package version 0.03
Package release alt1
Package architecture noarch
Package type rpm
Installed size 4.67 KB
Download size 4.67 KB
Official Mirror ftp.altlinux.org
I write a lot of classes that take files or directories on the
command-line.  This results in a lot of boilerplate, usually:
package Class;
use Moose;
use MooseX::Types::Path::Class qw(File);
has 'foo' => (
is       => 'ro',
isa      => File,
coerce   => 1,
required => 1,
);
This module lets you save yourself some typing in this case:
has_file 'foo' => ( required => 1 );
These are exactly equivalent.  `has_directory' does the same thing
that `has_file' does, but with a `Dir' constraint.
This module also defines two additional type constraints to ensure
that the specified file or directory exists and is a file or
directory.  You can use these constraints instead of the defaults by
passing `must_exist => 1' to the `has_*' function.

Alternatives

Package Version Architecture Repository
perl-MooseX-FileAttribute - - -

Requires

Name Value
/usr/share/perl5 -
perl(Moose/Exporter.pm) -
perl(MooseX/Types.pm) >= 0.110
perl(MooseX/Types/Moose.pm) -
perl(MooseX/Types/Path/Class.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(MooseX/FileAttribute.pm) = 0.030
perl-MooseX-FileAttribute = 0.03-alt1

Download

Type URL
Binary Package perl-MooseX-FileAttribute-0.03-alt1.noarch.rpm
Source Package perl-MooseX-FileAttribute-0.03-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-MooseX-FileAttribute rpm package:
    # sudo apt-get install perl-MooseX-FileAttribute

Files

Path
/usr/share/doc/perl-MooseX-FileAttribute-0.03/Changes
/usr/share/doc/perl-MooseX-FileAttribute-0.03/README
/usr/share/perl5/MooseX/FileAttribute.pm

See Also

Package Description
perl-MooseX-Final-0.001-alt1.noarch.rpm mark a class as "final" (cannot be inherited from)
perl-MooseX-FollowPBP-0.05-alt2_9.noarch.rpm Names accessors in the I<Perl Best Practices> style
perl-MooseX-FunkyAttributes-0.003-alt1.1.noarch.rpm add code smell to your Moose attributes
perl-MooseX-Getopt-Defanged-1.18.0-alt1.1.noarch.rpm Standard processing of command-line options, with Getopt::Long's nasty behavior defanged
perl-MooseX-Getopt-Explicit-0.03-alt1.1.noarch.rpm MooseX::Getopt, but without implicit option generation
perl-MooseX-Getopt-Kingpin-0.1.2-alt1.noarch.rpm A Moose role for processing command lines options via Getopt::Kingpin
perl-MooseX-Getopt-Usage-0.24-alt1.1.noarch.rpm Extend MooseX::Getopt with usage message and man page generated from attribute meta and POD
perl-MooseX-GlobRef-0.0701-alt1_22.noarch.rpm Store a Moose object in glob reference
perl-MooseX-Graph-Easy-StateMachine-0.01-alt1.1.noarch.rpm declare state subclasses using Graph::Easy syntax and Any::Moose
perl-MooseX-HandlesConstructor-0.001-alt1.1.noarch.rpm Moo[se] extension that allows for setting handle accessors with the constructor
perl-MooseX-Has-Options-0.003-alt1_15.noarch.rpm Succinct options for Moose
perl-MooseX-HasDefaults-0.03-alt1_11.noarch.rpm Default "is" to "ro" or "rw" for all attributes
perl-MooseX-IOC-0.03-alt1.1.noarch.rpm Moose attributes with IOC integration
perl-MooseX-InlineTypes-0.003-alt1.1.noarch.rpm declare type constraints and coercions inline with coderefs
perl-MooseX-InstanceTracking-0.06-alt1.1.noarch.rpm Trait for tracking all instances of a class
Advertisement
Advertisement