App-BambooCli

 view release on metacpan or  search on metacpan

lib/App/BambooCli/Config.pm  view on Meta::CPAN

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
    is      => 'rw',
    default => sub {
        return -f '.bamboo' ? '.bamboo' : "$ENV{HOME}/.bamboo";
    },
);
has bamboo => (
    is      => 'rw',
    lazy    => 1,
    builder => '_bamboo',
);
has [qw/ hostname username password debug /] => (
    is      => 'rw',
);
 
sub _bamboo {
    my ($self) = @_;
    my $bamboo = new Net::Bamboo;
 
    $bamboo->hostname($self->hostname);
    $bamboo->debug($self->debug);
 
    if ($self->username && $self->password) {
        $bamboo->username($self->username);
        $bamboo->password($self->password);
    }
 
    return $bamboo;
}
 
1;
 
__END__
 
=head1 NAME

lib/App/BambooCli/Config.pm  view on Meta::CPAN

75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
=head1 SUBROUTINES/METHODS
 
=head2 C<name>
 
=head2 C<bamboo>
 
=head2 C<hostname>
 
=head2 C<username>
 
=head2 C<password>
 
=head2 C<debug>
 
=head2 C<_bamboo>
 
=head1 DIAGNOSTICS
 
=head1 CONFIGURATION AND ENVIRONMENT
 
=head1 DEPENDENCIES



( run in 0.242 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )