| 1 | package Test::BDD::Infrastructure::Config::Augeas; | ||
| 2 | |||
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | # ABSTRACT: configuration class for Test::BDD::Infrastructure | ||
| 6 | our $VERSION = '1.005'; # VERSION | ||
| 7 | |||
| 8 | 0 | ▶ | use Config::Augeas; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 9 | |||
| 10 | has 'root' => ( is => 'ro', isa => 'Str', default => '/' ); | ||
| 11 | |||
| 12 | has '_aug' => ( | ||
| 13 | is => 'ro', isa => 'Config::Augeas', lazy => 1, | ||
| 14 | default => sub { | ||
| 15 | my $self = shift; | ||
| 16 | return Config::Augeas->new( | ||
| 17 | root => $self->root, | ||
| 18 | ); | ||
| 19 | }, | ||
| 20 | handles => { | ||
| 21 | 'get' => 'get', | ||
| 22 | 'get_node' => 'match', | ||
| 23 | }, | ||
| 24 | ); | ||
| 25 | |||
| 26 | 1; | ||
| 27 | |||
| 28 | __END__ | ||