kondate 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/kondate/cli.rb +7 -11
- data/lib/kondate/property_builder.rb +1 -1
- data/lib/kondate/property_file.rb +4 -0
- data/lib/kondate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d31589ca629f60bafbae2b69c18b2624727f61bf
|
4
|
+
data.tar.gz: bf1aab50985881df2d3992a52450f5c7b1bbd2c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ede72933e1fe30fa55497986daaaa849e8e0afc1c67ae78ebc267595b441fb02f129b874752303eac3d490f66cabc6ce9ee366f8294ac4968326ce1fda82adb8
|
7
|
+
data.tar.gz: 7c0ae9c00177ec96fb7fe967d56d90106163b29ede13caf2b8af9ece4726df90eac0a02f933ce662661afc097533a0c6571bd74f91399958edb5697db3573adb
|
data/CHANGELOG.md
CHANGED
data/lib/kondate/cli.rb
CHANGED
@@ -134,7 +134,7 @@ module Kondate
|
|
134
134
|
env = {}
|
135
135
|
env['RUBYOPT'] = "-I #{Config.plugin_dir} -r bundler/setup -r ext/itamae/kondate"
|
136
136
|
property_files.each do |role, property_file|
|
137
|
-
next if property_file.
|
137
|
+
next if property_file.empty?
|
138
138
|
command = "bundle exec itamae ssh"
|
139
139
|
command << " -h #{host}"
|
140
140
|
|
@@ -166,7 +166,7 @@ module Kondate
|
|
166
166
|
env['TARGET_VAGRANT'] = '1' if @options[:vagrant]
|
167
167
|
env['RUBYOPT'] = "-I #{Config.plugin_dir} -r bundler/setup -r ext/serverspec/kondate"
|
168
168
|
property_files.each do |role, property_file|
|
169
|
-
next if property_file.
|
169
|
+
next if property_file.empty?
|
170
170
|
spec_files = property_file.load['attributes'].keys.map {|recipe|
|
171
171
|
secret_spec_file = File.join(Config.secret_middleware_recipes_serverspec_dir, "#{recipe}_spec.rb")
|
172
172
|
spec_file = File.join(Config.middleware_recipes_serverspec_dir, "#{recipe}_spec.rb")
|
@@ -187,7 +187,7 @@ module Kondate
|
|
187
187
|
end
|
188
188
|
|
189
189
|
def proceed?(property_files)
|
190
|
-
if property_files.values.compact.empty?
|
190
|
+
if property_files.values.compact.reject(&:empty?).empty?
|
191
191
|
$stderr.puts "Nothing to run"
|
192
192
|
false
|
193
193
|
elsif @options[:confirm]
|
@@ -216,11 +216,11 @@ module Kondate
|
|
216
216
|
end
|
217
217
|
$stdout.print ", sources: #{property_file.source_files}"
|
218
218
|
|
219
|
-
if property_file
|
219
|
+
if property_file.empty?
|
220
|
+
$stdout.puts " (no attribute, skipped)"
|
221
|
+
else
|
220
222
|
$stdout.puts
|
221
223
|
$stdout.puts property_file.read
|
222
|
-
else
|
223
|
-
$stdout.puts " (no attribute, skipped)"
|
224
224
|
end
|
225
225
|
end
|
226
226
|
end
|
@@ -238,11 +238,7 @@ module Kondate
|
|
238
238
|
|
239
239
|
property_files = {}
|
240
240
|
roles.each do |role|
|
241
|
-
|
242
|
-
property_files[role] = property_file
|
243
|
-
else
|
244
|
-
property_files[role] = nil
|
245
|
-
end
|
241
|
+
property_files[role] = builder.install(role, @options[:recipe])
|
246
242
|
end
|
247
243
|
|
248
244
|
property_files
|
data/lib/kondate/version.rb
CHANGED