CloudDeploy/AuthorConfig.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond 0.0% 0 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
setup_author_db
2.0
BEGIN
2.0
CRAP 2.0
1 package CloudDeploy::AuthorConfig {
2 use Moose;
3 extends 'CloudDeploy::Config';
4  
5 has author_db => (is => 'ro', lazy => 1, default => sub { $ENV{DEPLOY_DB} or 'clouddeploy' });
6 has author_collection => (is => 'ro', lazy => 1, default => sub { $ENV{DEPLOY_COLLECTION} or 'definitions' });
7  
8 has author_mongo => (is => 'ro', lazy => 1, default => sub {
9 my $self = shift;
10 return $self->mongo_client->get_database($self->author_db)->get_collection($self->author_collection);
11 });
12  
13 sub setup_author_db {
14
15 }
16 }
17  
18 1;