NAME
Enbld::Definition - stores target software' attributes.
SYNOPSIS
require
Enbld::Definition;
my
$attributes
= Enbld::Definition->new(
'git'
)->parse;
$attributes
->add(
'VersionCondition'
,
'1.8.5'
);
$attributes
->ArchiveName;
# git
$attributes
->Vesion;
# 1.8.5
DESCRIPTION
Enbld::Definition stores target software' attributes.
METHODS
- new
-
my
$def
= Enbld::Definition->new(
'git'
);
Returns a new definition object for target software.
The return value is a Enbld::Definition::[target software] object.
When the definition module of the target software specified as the argument does not exist, undef is returned.
- parse
-
my
$def
= Enbld::Definition->new(
'git'
);
my
$attributes
=
$def
->parse;
$attributes
->ArchiveName;
# -> git
$attributes
->Extension;
# -> tar.gz
Returns a new attributes collector for target software.
The return value is a Enbld::Target::AttributeCollector object.
COPYRIGHT
copyright 2013- Magnolia <magnolia.k@me.com>
.
LICENSE
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.