amiral 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/amiral/providers/puppet-update.rb +3 -1
- data/lib/amiral/version.rb +1 -1
- metadata +1 -1
@@ -4,7 +4,7 @@ module Amiral
|
|
4
4
|
module Providers
|
5
5
|
class PuppetUpdate
|
6
6
|
def execute message
|
7
|
-
out = err = short = nil
|
7
|
+
out = err = short = status = nil
|
8
8
|
|
9
9
|
modname = ""
|
10
10
|
if message['command']['args'].length > 0
|
@@ -18,11 +18,13 @@ module Amiral
|
|
18
18
|
}
|
19
19
|
short = "unknown status"
|
20
20
|
end
|
21
|
+
|
21
22
|
if status.exitstatus == 0
|
22
23
|
short = "updated puppet and modules"
|
23
24
|
else
|
24
25
|
short = "encountered errors while updating puppet"
|
25
26
|
end
|
27
|
+
|
26
28
|
{
|
27
29
|
:exit => status.exitstatus,
|
28
30
|
:status => status,
|
data/lib/amiral/version.rb
CHANGED