| 1 | package App::SD; | ||
| 2 | use Any::Moose; | ||
| 3 | use App::SD::Config; | ||
| 4 | |||
| 5 | extends 'Prophet::App'; | ||
| 6 | |||
| 7 | our $VERSION = '0.75'; | ||
| 8 | |||
| 9 | has '+config' => ( | ||
| 10 | default => sub { | ||
| 11 | my $self = shift; | ||
| 12 | $ENV{PROPHET_APP_CONFIG} = $ENV{SD_CONFIG} if defined $ENV{SD_CONFIG}; | ||
| 13 | return App::SD::Config->new( app_handle => $self, confname => 'sdrc' ); | ||
| 14 | } | ||
| 15 | ); | ||
| 16 | |||
| 17 | use constant DEFAULT_REPLICA_TYPE => 'sqlite'; | ||
| 18 | |||
| 19 | sub default_replica_type { | ||
| 20 | my $self = shift; | ||
| 21 | return $ENV{'PROPHET_REPLICA_TYPE'} || DEFAULT_REPLICA_TYPE; | ||
| 22 | } | ||
| 23 | |||
| 24 | |||
| 25 | sub database_settings { | ||
| 26 | { | ||
| 27 | statuses => ['24183C4D-EFD0-4B16-A207-ED7598E875E6' => qw/new open stalled closed rejected/], | ||
| 28 | active_statuses => ['C879A68F-8CFE-44B5-9EDD-14E53933669E' => qw/new open/], | ||
| 29 | default_status => ['2F9E6509-4468-438A-A733-246B3061003E' => 'new' ], | ||
| 30 | components => ['6CBD84A1-4568-48E7-B90C-F1A5B7BD8ECD' => qw/core ui docs tests/], | ||
| 31 | default_component => ['0AEC922F-57B1-44BE-9588-816E5841BB18' => 'core'], | ||
| 32 | milestones => ['1AF5CF74-A6D4-417E-A738-CCE64A0A7F71' => qw/alpha beta 1.0/], | ||
| 33 | default_milestone => ['BAB613BD-9E25-4612-8DE3-21E4572859EA' => 'alpha'], | ||
| 34 | |||
| 35 | project_name => ['3B4B297C-906F-4018-9829-F7CC672274C9' => 'Your SD Project'], | ||
| 36 | common_ticket_props => ['3f0a074f-af13-406f-bf7b-d69bbf360720' => qw/id summary status milestone component owner created due creator reporter original_replica/], | ||
| 37 | prop_descriptions => ['c1bced3a-ad2c-42c4-a502-4149205060f1', | ||
| 38 | { summary => | ||
| 39 | "a one-line summary of what this ticket is about", | ||
| 40 | owner => | ||
| 41 | "the email address of the person who is responsible for this ticket", | ||
| 42 | due => | ||
| 43 | "when this ticket must be finished by", | ||
| 44 | reporter => | ||
| 45 | "the email address of the person who reported this ticket" | ||
| 46 | }, | ||
| 47 | ], | ||
| 48 | }; | ||
| 49 | } | ||
| 50 | |||
| 51 | __PACKAGE__->meta->make_immutable; | ||
| 52 | |||
| 53 | no Any::Moose; | ||
| 54 | 1; | ||
| 55 | |||
| 56 | __END__ |