2022-03-24 18:52:35 +01:00
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< title > Peace::Model::Release - The release object representation.< / title >
< meta content = "text/html; charset=utf-8" http-equiv = "content-type" / >
< link href = "mailto:Alpine@build-edge-aarch64.nonet" rev = "made" / >
< / head >
< body >
< ul id = "index" >
< li > < a href = "#NAME" > NAME< / a > < / li >
< li > < a href = "#SYNOPSIS" > SYNOPSIS< / a > < / li >
< li > < a href = "#DESCRIPTION" > DESCRIPTION< / a > < / li >
< li > < a href = "#INSTANCE-METHODS" > INSTANCE METHODS< / a >
< ul >
< li > < a href = "#new" > new< / a > < / li >
< / ul >
< / li >
< li > < a href = "#METHODS" > METHODS< / a >
< ul >
2022-03-29 01:03:02 +02:00
< li > < a href = "#generate_build" > generate_build< / a > < / li >
2022-03-24 18:52:35 +01:00
< li > < a href = "#uuid" > uuid< / a > < / li >
< li > < a href = "#date_creation" > date_creation< / a > < / li >
< li > < a href = "#application" > application< / a > < / li >
< li > < a href = "#tag" > tag< / a > < / li >
< li > < a href = "#name" > name< / a > < / li >
< / ul >
< / li >
< li > < a href = "#SEE-ALSO" > SEE ALSO< / a > < / li >
< / ul >
< h1 id = "NAME" > NAME< / h1 >
< p > Peace::Model::Release - The release object representation.< / p >
< h1 id = "SYNOPSIS" > SYNOPSIS< / h1 >
< pre > < code > my $release = Peace::Model::Release-> new(
application => $application,
tag => $tag,
name => $name,
);< / code > < / pre >
< h1 id = "DESCRIPTION" > DESCRIPTION< / h1 >
< p > Describes a release from an application from Peace.< / p >
< h1 id = "INSTANCE-METHODS" > INSTANCE METHODS< / h1 >
< p > Peace::Model::Release implements the following instance methods:< / p >
< h2 id = "new" > new< / h2 >
< pre > < code > my $release = Peace::Model::Release-> new(
uuid => $uuid, # optional
date_creation => $date_creation, # optional
application => $application, # required or application_uuid should be passed.
application_uuid => $application_uuid, # required or application should be passed
dbh => $dbh, # needed if application_uuid is passed
tag => $tag,
name => $name,
);< / code > < / pre >
< h1 id = "METHODS" > METHODS< / h1 >
< p > Peace::Model::Release implements the following methods:< / p >
2022-03-29 01:03:02 +02:00
< h2 id = "generate_build" > generate_build< / h2 >
2022-03-30 02:19:13 +02:00
< p > my $build = $release-> generate_build( arch => $arch );< / p >
2022-03-29 01:03:02 +02:00
2022-03-30 02:19:13 +02:00
< p > my $success = $build-> success; my $log = $build-> log;< / p >
2022-03-29 01:03:02 +02:00
2022-03-30 02:19:13 +02:00
< p > Attempts to build a flatpak for the release and unconditionally returns a < a href = "Build.pm.html" > Peace::Model::Build< / a > object with the results of the build.< / p >
2022-03-29 01:03:02 +02:00
2022-03-24 18:52:35 +01:00
< h2 id = "uuid" > uuid< / h2 >
< pre > < code > my $uuid = $release-> uuid;
$release-> uuid($uuid);< / code > < / pre >
< p > Allows to retrieve and set the release uuid.< / p >
< h2 id = "date_creation" > date_creation< / h2 >
< pre > < code > my $date_creation = $release-> date_creation;
$release-> date_creation($date_creation);< / code > < / pre >
< p > Allows to retrieve and set the release date creation as a < a href = "https://metacpan.org/pod/DateTime" > DateTime< / a > .< / p >
< h2 id = "application" > application< / h2 >
< pre > < code > my $application = $release-> application;
$release-> application($application);< / code > < / pre >
< p > Allows to retrieve and set the release application as a < a href = "Application.pm.html" > Peace::Model::Application< / a > .< / p >
< h2 id = "tag" > tag< / h2 >
< pre > < code > my $tag = $release-> tag;
$release-> tag($tag);< / code > < / pre >
< p > Allows to retrieve and set the release tag.< / p >
< h2 id = "name" > name< / h2 >
< pre > < code > my $name = $release-> name
$release-> name($name);< / code > < / pre >
< p > Allows to retrieve and set the release name.< / p >
< h1 id = "SEE-ALSO" > SEE ALSO< / h1 >
2022-03-25 02:12:32 +01:00
< p > < a href = "Application.pm.html" > Peace::Model::Application< / a > , < a href = "../DAO/Release.pm.html" > Peace::DAO::Release< / a > < / p >
2022-03-24 18:52:35 +01:00
< / body >
< / html >