dddr 1.1.0 → 1.1.1
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6037def8474e0a19cb71d65912d75c63d4ed0bf23a02f7a42d5ac6202b1fc3
|
4
|
+
data.tar.gz: f706863b32ef9fb10038b36e45414027c1f3f6a31afdaf715de8c726fc897ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dcfc32439afd20298a0aa34c9d2db345ed3a0abf02cd8821c4e09a955c168e7a24a536e165e2c82ff99bf2548b3a710449c4900b1f88a9628839d159bc9ba8c
|
7
|
+
data.tar.gz: '0096a5f6de876e4e4cafc4f12c18b3e42252699bfed22c0e1d1cfc6e62bf2ed825a50c5dd4f53fd4d2223460a10c872f4599b558a3f5505abce84b43ae74c876'
|
data/lib/dddr/version.rb
CHANGED
data/lib/dddr.rb
CHANGED
@@ -15,7 +15,7 @@ module Dddr
|
|
15
15
|
def self.configure
|
16
16
|
configuration.env = ENV["DDDR_ENV"] || "development"
|
17
17
|
configuration.data_dir = "/var/dddr"
|
18
|
-
configuration.container =
|
18
|
+
configuration.container = nil
|
19
19
|
yield(configuration) if block_given?
|
20
20
|
end
|
21
21
|
|
@@ -67,6 +67,8 @@ module Dddr
|
|
67
67
|
env = Dddr.configuration.env
|
68
68
|
data_dir = Dddr.configuration.data_dir
|
69
69
|
container = Dddr.configuration.container
|
70
|
+
raise Dddr::Error, "Container name is required" unless container
|
71
|
+
|
70
72
|
unless Dir.exist?(data_dir)
|
71
73
|
if data_dir.include?("/var/")
|
72
74
|
`sudo mkdir -p #{data_dir}/#{container}/#{env}/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dddr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delaney Burke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sdbm
|