dpmrb 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dpm/runner.rb +7 -2
- data/lib/dpm/version.rb +1 -1
- data/packages/elasticsearch/default.yml +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: 1288404d92033ac62902d42ed3727ac3de47df684ce225adf8f386d9a7968edd
|
4
|
+
data.tar.gz: ca7f984fe889bdb0c497e6e04865d1166231b71ffc744d66c49361b00e5ff914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4c5ef506c195e0bf11c52620a12c10d6ec2bfa07d2dd8c3307f2431b11f013c7a752eef9cb17d4c289242fa7c9d66a31d140c4f9c9ee73580fd1830a6f8b7c
|
7
|
+
data.tar.gz: a25e3e9b13ff5a5bd36a64a92d146a728373593c907f989b279bbcf4bd1b2b7838b55af029672bae8048b9819bcd2fb4d8d36d4a1042c639e517057cf77cff12
|
data/Gemfile.lock
CHANGED
data/lib/dpm/runner.rb
CHANGED
@@ -110,9 +110,14 @@ module DPM
|
|
110
110
|
option_prefix = "--"
|
111
111
|
value_joiner = "="
|
112
112
|
end
|
113
|
-
full_value = "#{value_joiner}#{value}" if value != true
|
114
113
|
|
115
|
-
|
114
|
+
if value == true
|
115
|
+
"#{option_prefix}#{key}"
|
116
|
+
elsif value.is_a?(Array)
|
117
|
+
value.map { |v| "#{option_prefix}#{key}#{value_joiner}#{v}" }.join(" ")
|
118
|
+
else
|
119
|
+
"#{option_prefix}#{key}#{value_joiner}#{value}"
|
120
|
+
end
|
116
121
|
end
|
117
122
|
hash_arr.join(" ")
|
118
123
|
end
|
data/lib/dpm/version.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
image_name: "docker.elastic.co/elasticsearch/elasticsearch"
|
2
2
|
run_options:
|
3
|
-
p:
|
3
|
+
p:
|
4
|
+
- "9200:9200"
|
5
|
+
- "9300:9300"
|
4
6
|
e: "discovery.type=single-node"
|
5
7
|
v: "<%= DPM::HOME %>/data/<%= package_name %>/<%= package_tag || 'default' %>:/usr/share/elasticsearch/data"
|