barruun 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/barruun/managers/utils.rb +2 -3
- data/lib/barruun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b0b9a2fc5b72870179cb35d5c1da70d56253c8ee97df145bf85eac801635b84
|
4
|
+
data.tar.gz: 7dafcd4ecb497036a3f44d10f334f41f9a5208acb6643268b1abd49e162b412d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7733b651373aed0fc762023acded6e7fcb08dd520ef417798446fcb17ea85a87bcbeea2b5b4661b05382852b9758cdd0dfde42ec3dcbf47a58bc2c3fe7ef71fe
|
7
|
+
data.tar.gz: dee542b26955853f065da1977e27d6df4aa609e8f8b5d17d5829d1fdba51e0a3e7bdbbcbae15a112756afe8d773ce65cc6a2186483d03a7a25a143b8c1320f8c
|
data/Gemfile.lock
CHANGED
@@ -9,11 +9,10 @@ module Barruun
|
|
9
9
|
|
10
10
|
def initialize(file_path, config_klass = Object.const_get("#{self.class.name.gsub("Managers", "Configurations")}"))
|
11
11
|
@file_path = file_path
|
12
|
-
|
13
|
-
@config = config_klass.new(YAML.load_file(file_path))
|
14
|
-
rescue
|
12
|
+
if !File.exists?(@file_path)
|
15
13
|
raise self.class::ConfigFileLoadError, "Error loading config file: #{file_path}"
|
16
14
|
end
|
15
|
+
@config = config_klass.new(YAML.load_file(file_path))
|
17
16
|
end
|
18
17
|
|
19
18
|
def call
|
data/lib/barruun/version.rb
CHANGED