blackstack-deployer 1.2.17 → 1.2.18
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/lib/blackstack-deployer.rb +6 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1b14b1870b2b15b1f26f5b6087e4ceb672e375fce44d02ea7ae36d658d690c3
|
4
|
+
data.tar.gz: ff442f3dc4231513d28147431c859bc0791114a57d7085e90903e6aa7a09b7b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1080f3ec0c42bd3d0d47405f988a7ce6d3173340026c570b1442e2cbcb83ad68169eecb8987f61317a3adfce36f23f5cbabd56d1341ac2c027a06841dff89824
|
7
|
+
data.tar.gz: d11e282d1b7653cdb69c567f865f23a82d1a6b147f2e0258bd5e1371b92cf5864f17173a81c505010384e95b923c7bcf208e69a06cb25905151170e39e05cbce
|
data/lib/blackstack-deployer.rb
CHANGED
@@ -336,9 +336,12 @@ module BlackStack
|
|
336
336
|
}
|
337
337
|
ret = lines.join("\n")
|
338
338
|
end
|
339
|
+
# apply modifications due the sudo flag
|
339
340
|
# return the code
|
341
|
+
ret = node.code(ret, self.sudo)
|
342
|
+
# return
|
340
343
|
ret
|
341
|
-
|
344
|
+
end
|
342
345
|
|
343
346
|
def run(node)
|
344
347
|
l = BlackStack::Deployer.logger
|
@@ -369,12 +372,12 @@ module BlackStack
|
|
369
372
|
# running the command
|
370
373
|
l.logs "Show command output... " if BlackStack::Deployer.show_output
|
371
374
|
l.log "\n\nCommand:\n--------\n\n#{s} " if BlackStack::Deployer.show_output
|
372
|
-
output = node.exec(s,
|
375
|
+
output = node.exec(s, false) # false: I already evaluated the :sudo parameter in the code method above.
|
373
376
|
l.log "\n\nOutput:\n-------\n\n#{output}" if BlackStack::Deployer.show_output
|
374
377
|
l.logf('done tracing.') if BlackStack::Deployer.show_output
|
375
378
|
|
376
379
|
# validation: at least one of the matches should happen
|
377
|
-
if self.matches.size > 0
|
380
|
+
if self.matches.size > 0 && !self.background
|
378
381
|
i = 0
|
379
382
|
self.matches.each do |m|
|
380
383
|
if m.validate(output).size == 0 # no errors
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.2.
|
19
|
+
version: 1.2.9
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.2.
|
22
|
+
version: 1.2.9
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.2.
|
29
|
+
version: 1.2.9
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.2.
|
32
|
+
version: 1.2.9
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pg
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|