docker-manager 0.0.4 → 0.0.5
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/dockermanager/config.rb +7 -4
- data/lib/dockermanager/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: 16e4a40c1b4cc0bd172fb8f54838a874e14a4682fb1f48bf76b22448012e1078
|
|
4
|
+
data.tar.gz: 4962ac1b8879b7333cc9e519c8592e4de1ee333d854c6049c0269c2f1ce97096
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd9b84f355ca552e18d0875e000fa6fc2100db473e5e5a10e16fcf68961e72b86834ddc0b0ec48bffc99eb6c435f7345c88d3c309aaa16f457a27467e9c73e3b
|
|
7
|
+
data.tar.gz: 143115736d0eca2792b5b2a471119b7847370b487d4a98b9e460ad8402fdc9d100be0e6c775caebe30dc32cf37786847d4091a5ab545f3d7630e236adf7601a8
|
data/lib/dockermanager/config.rb
CHANGED
|
@@ -21,10 +21,13 @@ module DockerManager
|
|
|
21
21
|
|
|
22
22
|
def project_root_path
|
|
23
23
|
return @project_root_path if defined?(@project_root_path)
|
|
24
|
-
@project_root_path = value(key: :project_root_path, required:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
if @project_root_path = value(key: :project_root_path, required: false)
|
|
25
|
+
unless Dir.exist?(@project_root_path)
|
|
26
|
+
puts "invalid project_root_path : #{@project_root_path}"
|
|
27
|
+
exit 3
|
|
28
|
+
end
|
|
29
|
+
else
|
|
30
|
+
@project_root_path = "./"
|
|
28
31
|
end
|
|
29
32
|
@project_root_path
|
|
30
33
|
end
|