diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-12-16 23:24:20 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-16 23:24:20 +0100 |
commit | f23369c8b19a2e0966e6dde843ab6920fe0b93df (patch) | |
tree | fe80b3e2b4a00719c18d7dc46ab489f6419926ae /lib/App/ArchLinux/PackagerTools.pm | |
parent | 6a3c34e6561ed471556564561473486f3a98dfeb (diff) | |
download | App-ArchLinux-PackagerTools-f23369c8b19a2e0966e6dde843ab6920fe0b93df.tar.gz App-ArchLinux-PackagerTools-f23369c8b19a2e0966e6dde843ab6920fe0b93df.tar.xz |
WIP Add configuration class
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App/ArchLinux/PackagerTools.pm')
-rw-r--r-- | lib/App/ArchLinux/PackagerTools.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/App/ArchLinux/PackagerTools.pm b/lib/App/ArchLinux/PackagerTools.pm index 79b4787..a4cd69e 100644 --- a/lib/App/ArchLinux/PackagerTools.pm +++ b/lib/App/ArchLinux/PackagerTools.pm @@ -10,6 +10,7 @@ use Log::Any qw($log); use App::ArchLinux::PackagerTools::Pacman; use App::ArchLinux::PackagerTools::CPAN; +use App::ArchLinux::PackagerTools::Config; =encoding utf-8 @@ -37,6 +38,7 @@ Returns a new instance. =cut method new($class: $deps = {}) { + $deps->{config} //= App::ArchLinux::PackagerTools::Config->new(); $deps->{cpan} //= App::ArchLinux::PackagerTools::CPAN->new(); $deps->{pacman} //= App::ArchLinux::PackagerTools::Pacman->new({$deps->%{cpan}}); return $class->new_no_defaults($deps); @@ -46,6 +48,7 @@ method new_no_defaults($class: $deps = {}) { my $self = {}; bless $self, $class; $self->{deps} = $deps; + $self->{config} = $deps->{config}->get_config(); return $self; } |