| 1 | # Copyright (c) 2015 SUSE LLC | ||
| 2 | # | ||
| 3 | # This program is free software; you can redistribute it and/or modify | ||
| 4 | # it under the terms of the GNU General Public License version 2 as | ||
| 5 | # published by the Free Software Foundation. | ||
| 6 | # | ||
| 7 | # This program is distributed in the hope that it will be useful, | ||
| 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | # GNU General Public License for more details. | ||
| 11 | # | ||
| 12 | # You should have received a copy of the GNU General Public License | ||
| 13 | # along with this program (see the file COPYING); if not, write to the | ||
| 14 | # Free Software Foundation, Inc., | ||
| 15 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA | ||
| 16 | # | ||
| 17 | package Net::OBS::Client::Roles::BuildStatus; | ||
| 18 | |||
| 19 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 1 | ▶ | use Net::OBS::Client::DTD; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 0 | ▶ | use XML::Structured; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 22 | |||
| 23 | requires 'code'; | ||
| 24 | |||
| 25 | has project => ( | ||
| 26 | is => 'rw', | ||
| 27 | isa => 'Str', | ||
| 28 | ); | ||
| 29 | |||
| 30 | has package => ( | ||
| 31 | is => 'rw', | ||
| 32 | isa => 'Str', | ||
| 33 | ); | ||
| 34 | |||
| 35 | has dtd => ( | ||
| 36 | is => 'rw', | ||
| 37 | isa => 'Object', | ||
| 38 | lazy => 1, | ||
| 39 | default => sub { | ||
| 40 | Net::OBS::Client::DTD->new() | ||
| 41 | }, | ||
| 42 | ); | ||
| 43 | |||
| 44 | has name => ( | ||
| 45 | is => 'ro', | ||
| 46 | isa => 'Str', | ||
| 47 | ); | ||
| 48 | |||
| 49 | 1; | ||