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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6c0f52ffa194774f2608e5b49e4f83ac4d9042b93a4b0671a17832260346287
4
- data.tar.gz: a4694ce151f8b5ff79169e81784b3d3947221f1ea4f2d2bad9ae44597e42b6e7
3
+ metadata.gz: 1288404d92033ac62902d42ed3727ac3de47df684ce225adf8f386d9a7968edd
4
+ data.tar.gz: ca7f984fe889bdb0c497e6e04865d1166231b71ffc744d66c49361b00e5ff914
5
5
  SHA512:
6
- metadata.gz: 6a4908ead37f4d397f8907e4d8c9a8dfe406f1e2bd5b3351d56163540821967aadb80431dfff8684e6979c26349088922d81d1f03c241ed6488b9d119e4fdfb6
7
- data.tar.gz: bd7d3ce91c79e559ef8735d17e5a5e493cd905b0237b43c863ffeed90c5a77cbfedfaf9e4a73006e818cd9f4dd51db0a2dbee046b1e1793181b87ca9c11dcbad
6
+ metadata.gz: ab4c5ef506c195e0bf11c52620a12c10d6ec2bfa07d2dd8c3307f2431b11f013c7a752eef9cb17d4c289242fa7c9d66a31d140c4f9c9ee73580fd1830a6f8b7c
7
+ data.tar.gz: a25e3e9b13ff5a5bd36a64a92d146a728373593c907f989b279bbcf4bd1b2b7838b55af029672bae8048b9819bcd2fb4d8d36d4a1042c639e517057cf77cff12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dpmrb (0.1.1)
4
+ dpmrb (0.2.0)
5
5
  activesupport (~> 6.x)
6
6
 
7
7
  GEM
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
- "#{option_prefix}#{key}#{full_value}"
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,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DPM
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -1,5 +1,7 @@
1
1
  image_name: "docker.elastic.co/elasticsearch/elasticsearch"
2
2
  run_options:
3
- p: "9200:9200"
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpmrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Song Huang