concourse-technician 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/concourse-technician/settings.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01b2303e0d13400eeabc93dcbd3663522ecf66db
|
|
4
|
+
data.tar.gz: 13486dc822dce28ea401342c43eb1b5eddbeed4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8ee4812302dbbbdf4cf24ff10cc3cfb012f81a29426386aee7237638e3688d9b3b8f6b810da3287a1715be5e37c42cdb8d27f41f8fc045866a86f841ca9af0a
|
|
7
|
+
data.tar.gz: 341c79b1f53bf565785887cee1c6ccb51777e6dd960a7f4c1f2ddda62d13d48d3e8dea17b21b87e77c689e13714784aafcf09d393a2c7c6dc68385f2f2a60aeb
|
|
@@ -15,7 +15,11 @@ module ConcourseTechnician
|
|
|
15
15
|
|
|
16
16
|
Contract None => HashOf[String, Or[String, Num]]
|
|
17
17
|
def settings
|
|
18
|
-
@config ||=
|
|
18
|
+
@config ||= if File.exist? settings_path
|
|
19
|
+
YAML.load_file settings_path
|
|
20
|
+
else
|
|
21
|
+
{}
|
|
22
|
+
end
|
|
19
23
|
end
|
|
20
24
|
end
|
|
21
25
|
end
|