confrb 1.6 → 1.7
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/confrb.rb +5 -2
- 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: b8dfa076ab1375b93293ff60476790ab13290dabef9a11fc548bf9ec72de19b3
|
4
|
+
data.tar.gz: 5cb5e6b28791faa5a5b55e20901effeee961f96c1f7e82d628d5ede60725a580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e756e3bddb9c8970be8ead63eafd0d499e84b4e5992c216feacf1815260c0e2e529a1b12be64461e17f6f3e7c45ec8706ad89a9bff5247e8110fc8d9f5964ae1
|
7
|
+
data.tar.gz: ed0d486f91a42faed7a2b3d571b8e6c290cd2d2775792477485aa434ebb4e80a0d822e9f6e8bf209dc984d6627a981c4e3783bf1a54f2214e03f6f246e297b45
|
data/lib/confrb.rb
CHANGED
@@ -21,8 +21,11 @@ class Confrb
|
|
21
21
|
# Access the given database, prepending '.' to given name. Auto-create if doesn't exist.
|
22
22
|
# @param [String] db The name of the configuration directory to access
|
23
23
|
def self.access(db)
|
24
|
-
|
25
|
-
|
24
|
+
if Dir.exist? '.' + db
|
25
|
+
Confrb.new db
|
26
|
+
else
|
27
|
+
raise "Directory does not exist!"
|
28
|
+
end
|
26
29
|
end
|
27
30
|
|
28
31
|
##
|