line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bolts::Scope; |
2
|
|
|
|
|
|
|
$Bolts::Scope::VERSION = '0.143171'; |
3
|
|
|
|
|
|
|
# ABSTRACT: The interface for lifecycle managers |
4
|
|
|
|
|
|
|
|
5
|
11
|
|
|
11
|
|
4788
|
use Moose::Role; |
|
11
|
|
|
|
|
21
|
|
|
11
|
|
|
|
|
79
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
requires 'get'; |
9
|
|
|
|
|
|
|
requires 'put'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
1; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
__END__ |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=pod |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=encoding UTF-8 |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Bolts::Scope - The interface for lifecycle managers |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 VERSION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
version 0.143171 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This describes the interface to be implemented by all artifact scopes, which are used to manage the lifecycles of artifacts in the Bolts system. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 REQUIRED METHODS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head2 get |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
my $artifact = $scope->get($bag, $name); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Fetches the named value out of the scope cache for the given bag. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 put |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$scope->put($bag, $name, $artifact); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Stores the named value into the scope cache for the given bag. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHOR |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Andrew Sterling Hanenkamp <hanenkamp@cpan.org> |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Qubling Software LLC. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
54
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |