amiral 0.1.13 → 0.1.14
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.
- data/lib/amiral/providers/puppet-update.rb +3 -3
- data/lib/amiral/version.rb +1 -1
- metadata +1 -1
|
@@ -6,13 +6,13 @@ module Amiral
|
|
|
6
6
|
def execute message
|
|
7
7
|
out = err = short = nil
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
modname = ""
|
|
10
10
|
if message['command']['args'].length > 0
|
|
11
|
-
|
|
11
|
+
modname = message['command']['args'][0]
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
Dir.chdir '/etc/puppet' do
|
|
15
|
-
status = POpen4::popen4("git pull && librarian-puppet update #{
|
|
15
|
+
status = POpen4::popen4("git pull && librarian-puppet update #{modname}"){|stdout,stderr,stdin,pid|
|
|
16
16
|
out = stdout.read
|
|
17
17
|
err = stderr.read
|
|
18
18
|
}
|
data/lib/amiral/version.rb
CHANGED