dddr 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dddr/version.rb +1 -1
  3. data/lib/dddr.rb +3 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac6037def8474e0a19cb71d65912d75c63d4ed0bf23a02f7a42d5ac6202b1fc3
4
- data.tar.gz: f706863b32ef9fb10038b36e45414027c1f3f6a31afdaf715de8c726fc897ba2
3
+ metadata.gz: cbf06845c3fffb2073721b00080de52829bd357ce8d38254f4cf871dc9411c1f
4
+ data.tar.gz: 9db177525769ebca386819c550da01cce49557413994bd693a1d01e254a7a2aa
5
5
  SHA512:
6
- metadata.gz: 4dcfc32439afd20298a0aa34c9d2db345ed3a0abf02cd8821c4e09a955c168e7a24a536e165e2c82ff99bf2548b3a710449c4900b1f88a9628839d159bc9ba8c
7
- data.tar.gz: '0096a5f6de876e4e4cafc4f12c18b3e42252699bfed22c0e1d1cfc6e62bf2ed825a50c5dd4f53fd4d2223460a10c872f4599b558a3f5505abce84b43ae74c876'
6
+ metadata.gz: 2011c4bf79e2a2dff40478c86aa86c53f2e7b5ecd62416b51ed9d03ac21d11d993c395a30736b757f312376ca40a8f56a1f722150c9b5859c80a7e4123bbf68f
7
+ data.tar.gz: 428d36d5cfa9d9c44487ac236c1f5a2573a637aadaaa73d9aa1d0251432885b079ff78c5e752941009bc04d70dd9fde7f62ee6bbead9b8134953b3132702a1ce
data/lib/dddr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dddr
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
5
5
  end
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
- `sudo chown $USER #{data_dir}/#{container}/#{env}/`
77
+
76
78
  else
77
79
  `mkdir -p #{data_dir}/#{container}/#{env}/`
78
80
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dddr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Burke