dddr 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dddr/version.rb +1 -1
- data/lib/dddr.rb +3 -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: cbf06845c3fffb2073721b00080de52829bd357ce8d38254f4cf871dc9411c1f
|
4
|
+
data.tar.gz: 9db177525769ebca386819c550da01cce49557413994bd693a1d01e254a7a2aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2011c4bf79e2a2dff40478c86aa86c53f2e7b5ecd62416b51ed9d03ac21d11d993c395a30736b757f312376ca40a8f56a1f722150c9b5859c80a7e4123bbf68f
|
7
|
+
data.tar.gz: 428d36d5cfa9d9c44487ac236c1f5a2573a637aadaaa73d9aa1d0251432885b079ff78c5e752941009bc04d70dd9fde7f62ee6bbead9b8134953b3132702a1ce
|
data/lib/dddr/version.rb
CHANGED
data/lib/dddr.rb
CHANGED
@@ -68,11 +68,13 @@ module Dddr
|
|
68
68
|
data_dir = Dddr.configuration.data_dir
|
69
69
|
container = Dddr.configuration.container
|
70
70
|
raise Dddr::Error, "Container name is required" unless container
|
71
|
+
puts `sudo mkdir -p /var/dddr/#{container}`
|
71
72
|
|
72
73
|
unless Dir.exist?(data_dir)
|
73
74
|
if data_dir.include?("/var/")
|
75
|
+
`sudo chown $USER #{data_dir}/#{container}/`
|
74
76
|
`sudo mkdir -p #{data_dir}/#{container}/#{env}/`
|
75
|
-
|
77
|
+
|
76
78
|
else
|
77
79
|
`mkdir -p #{data_dir}/#{container}/#{env}/`
|
78
80
|
end
|