| 1 | 1 | ▶ | use 5.008; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Class::Scaffold::YAML::Active::Environment; | ||||||||||
| 6 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | $Class::Scaffold::YAML::Active::Environment::VERSION = '1.102280'; | |||||||||
| 8 | } | ||||||||||
| 9 | # ABSTRACT: Plugin for setting environment values | ||||||||||
| 10 | 1 | ▶ | use Class::Scaffold::Environment; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | ▶ | use YAML::Active qw/assert_hashref hash_activate yaml_NULL/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 1 | ▶ | use parent 'Class::Scaffold::YAML::Active'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub yaml_activate { | ||||||||
|
Subroutine
yaml_activate: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 15 | 0 | my ($self, $phase) = @_; | |||||||||
| 16 | 0 | assert_hashref($self); | |||||||||
| 17 | 0 | my $hash = hash_activate($self, $phase); | |||||||||
| 18 | 0 | my $env = Class::Scaffold::Environment->getenv; | |||||||||
| 19 | 0 | ▶ | while (my ($key, $value) = each %$hash) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 0 | $env->{$key} = $value; | |||||||||
| 21 | } | ||||||||||
| 22 | 0 | yaml_NULL(); | |||||||||
| 23 | } | ||||||||||
| 24 | 1 | 1; | |||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||