diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-09-09 11:14:52 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-09-09 15:45:11 +0200 |
commit | 0c56663e09dd80a2c5225446a46b5bd908eb829d (patch) | |
tree | b2a0f95727e64bc568612bfa66970cb6aba3d1e9 /lib/App/BorgRestore.pm | |
parent | 3c55b139aa0371e7bace5ef9b76ff3c15fddca88 (diff) | |
download | App-BorgRestore-0c56663e09dd80a2c5225446a46b5bd908eb829d.tar.gz App-BorgRestore-0c56663e09dd80a2c5225446a46b5bd908eb829d.tar.xz |
Settings: Add constructors
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App/BorgRestore.pm')
-rw-r--r-- | lib/App/BorgRestore.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm index d90afe2..327bb42 100644 --- a/lib/App/BorgRestore.pm +++ b/lib/App/BorgRestore.pm @@ -90,6 +90,8 @@ L<App::BorgRestore::DB> =cut method new($class: $deps = {}) { + $deps->{settings} //= App::BorgRestore::Settings->new(); + my $db_path = App::BorgRestore::Settings::get_db_path(); my $cache_size = $App::BorgRestore::Settings::sqlite_cache_size; |