line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
803
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
2
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
69
|
|
3
|
|
|
|
|
|
|
package Mojolicious::Plugin::Dotcloud; |
4
|
|
|
|
|
|
|
{ |
5
|
|
|
|
|
|
|
$Mojolicious::Plugin::Dotcloud::VERSION = '1.01'; |
6
|
|
|
|
|
|
|
} |
7
|
1
|
|
|
1
|
|
826
|
use Mojo::Base 'Mojolicious::Plugin'; |
|
1
|
|
|
|
|
11912
|
|
|
1
|
|
|
|
|
9
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: A quick and dirty wrapper around DotCloud::Environment |
9
|
1
|
|
|
1
|
|
2428
|
use DotCloud::Environment; |
|
1
|
|
|
|
|
33314
|
|
|
1
|
|
|
|
|
12
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub register { |
12
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
13
|
0
|
|
|
|
|
|
my $app = shift; |
14
|
0
|
|
|
|
|
|
my $args = shift; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
0
|
|
|
$app->attr('_dotcloud' => sub { DotCloud::Environment->new($args) }); |
|
0
|
|
|
|
|
|
|
17
|
0
|
|
|
0
|
|
|
$app->helper('dotcloud' => sub { return shift->app->_dotcloud }); |
|
0
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
__END__ |