blackstack-deployer 1.2.21 → 1.2.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blackstack-deployer.rb +9 -2
- 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: 596376713a5b5eab0a27f97e8601c59188c5436e26e3312f4d783c3e129e415a
|
4
|
+
data.tar.gz: 83d61e633596e2c4963bd3e7a5d1907630363d5968de96c6544c2916c07e5041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3271ce02a03667a0725a3fc2fd3025cdd7c6662176226acf1ad69bb13f162a3b5e5ca81613d07fbccc6271ff2c20c85a4010af88273f9d6183925670b63dc4f
|
7
|
+
data.tar.gz: 753d60764dbef8249eb23d64a6b0b9eebb9029ba7a4b9325377bd3dc35bc44e837dd2d45e199f90491577e2fe07e4d682d05d288d0f2531d39a8000f17557120
|
data/lib/blackstack-deployer.rb
CHANGED
@@ -211,7 +211,7 @@ module BlackStack
|
|
211
211
|
# :reboot is a reserved word, so it is fine to call :reboot
|
212
212
|
else
|
213
213
|
# validate: existis a routine with a the value c[:command].to_s on its :name key
|
214
|
-
errors << "The routine with the name #{c[:command].to_s} does not exist" unless BlackStack::Deployer::
|
214
|
+
errors << "The routine with the name #{c[:command].to_s} does not exist" unless BlackStack::Deployer::routines.select { |r| r.name == c[:command].to_s }.size > 0
|
215
215
|
end
|
216
216
|
else
|
217
217
|
# validate: each line of the :command value must finish with ;
|
@@ -284,11 +284,16 @@ module BlackStack
|
|
284
284
|
end
|
285
285
|
end
|
286
286
|
end
|
287
|
+
#puts
|
288
|
+
#puts
|
289
|
+
#puts "command: #{self.command}"
|
290
|
+
#puts "h[:background] = #{h[:background]}"
|
287
291
|
if h.has_key?(:background)
|
288
292
|
self.background = h[:background]
|
289
293
|
else
|
290
294
|
self.background = false
|
291
|
-
end
|
295
|
+
end
|
296
|
+
#puts "self.background = #{self.background}"
|
292
297
|
end # def initialize(h)
|
293
298
|
|
294
299
|
def to_hash
|
@@ -338,6 +343,8 @@ module BlackStack
|
|
338
343
|
end
|
339
344
|
# if the command is configured to run in background, then modify the ret to run in background.
|
340
345
|
# note: even if you the flag show_ouput is on, you won't see any error message.
|
346
|
+
#puts
|
347
|
+
#puts "self.background: #{self.background.to_s}"
|
341
348
|
if self.background #&& !BlackStack::Deployer.show_output
|
342
349
|
lines = ret.strip.lines
|
343
350
|
total = lines.size
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blackstack-deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blackstack-nodes
|