« Tapper/Schema/TestrunDB/Result/PrePrecondition.pm
↑ Summary
Tapper/Schema/TestrunDB/Result/QueueHost.pm »
| 1 | package Tapper::Schema::TestrunDB::Result::Preconditiontype; | ||
| 2 | 10 | our $AUTHORITY = 'cpan:TAPPER'; | |
| 3 | 10 | $Tapper::Schema::TestrunDB::Result::Preconditiontype::VERSION = '5.0.12'; | |
| 4 | # ABSTRACT: Tapper - Containing types of preconditions | ||
| 5 | |||
| 6 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 10 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 10 | our %preconditiontype_description = | |
| 10 | ( | ||
| 11 | package => 'a package, might be a kernel, eg. .tgz, .rpm, ...', | ||
| 12 | image => 'a complete os image, .tgz, .iso, ...', | ||
| 13 | subdir => 'a subdir that can just be copied/rsynced', | ||
| 14 | xen => 'a setup description for a Xen based host+guests', | ||
| 15 | kvm => 'a setup description for a KVM based host+guests', | ||
| 16 | dist_xen => 'Xen environment of a particular distribution', | ||
| 17 | dist_kvm => 'KVM environment of a particular distribution', | ||
| 18 | distribution => 'a particular whole distribution', | ||
| 19 | description => 'just a description, no actual file and not a particular other type. can be used for meta packges or dependency trees', | ||
| 20 | ); | ||
| 21 | |||
| 22 | 10 | ▶ | use parent 'DBIx::Class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | |||
| 24 | 10 | __PACKAGE__->load_components("Core"); | |
| 25 | 10 | __PACKAGE__->table("preconditiontype"); | |
| 26 | 10 | __PACKAGE__->add_columns | |
| 27 | ( | ||
| 28 | "name", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 255, }, | ||
| 29 | "description", { data_type => "TEXT", default_value => "", is_nullable => 0, }, | ||
| 30 | ); | ||
| 31 | 10 | __PACKAGE__->set_primary_key("name"); | |
| 32 | |||
| 33 | |||
| 34 | 10 | 1; | |
| 35 | |||
| 36 | __END__ | ||