nub 0.0.33 → 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nub/config.rb +2 -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: 0cf925a7cd5d2cf8c28a7c30cd254aba66e956717bea8adaaaa3587f494bd170
|
4
|
+
data.tar.gz: 6d544b6ecf927a507816ff25540d52a2ecb4dfa92f04692aa9aee192cdf4dead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5724872db7f4aad0d12bb8f93f0566bb7d847da0bd9f844006ea25bd19b3641bade73e0b33e03f372d6b8b1097edfb8ff191694143e2a9c63c279657fb48e6c2
|
7
|
+
data.tar.gz: a872d28e8f0fc5d670bb80692f00d84b85e83fa15e1f233e3668b23e5219d2772b6896cc97b596fac583b6a40daea17d06b5deadf999cca3dd48ced09b3fa108
|
data/lib/nub/config.rb
CHANGED
@@ -53,7 +53,7 @@ module Config
|
|
53
53
|
end
|
54
54
|
|
55
55
|
# Simple bool whether the config exists or not on disk
|
56
|
-
def exists?
|
56
|
+
def self.exists?
|
57
57
|
return File.exists?(@path)
|
58
58
|
end
|
59
59
|
|
@@ -69,7 +69,7 @@ module Config
|
|
69
69
|
|
70
70
|
# Save the config file
|
71
71
|
def self.save
|
72
|
-
File.
|
72
|
+
File.write(@path, @@_yml.to_yaml) if @@_yml
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|