lita-puppet 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/puppet.rb +6 -6
- data/lita-puppet.gemspec +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: 7eb312914788d7ffa3d77b01222fefb998b9c372
|
4
|
+
data.tar.gz: f4731fbe4b371cad8038aaedb3658101ec8cd9e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef51bf28d6598071ce4a63f57972c1e91dc82d413445990259aaf67a995529f2b53265cedff354fee2d48910569f5698a085009583e50f307d7ec0e82622a1ea
|
7
|
+
data.tar.gz: 6c4109d07f7089d450a6027aad9c548069cb7780abd0cef3933439bfd3abd2dd16863b7bd085b0386e65b3685220f459c77b38e6ff843dc8c47c4e5f862e3bd6
|
data/lib/lita/handlers/puppet.rb
CHANGED
@@ -16,11 +16,12 @@ module Lita
|
|
16
16
|
)
|
17
17
|
|
18
18
|
def r10k_deploy(response)
|
19
|
-
environment = response.matches[0][
|
19
|
+
environment = response.matches[0][3]
|
20
20
|
control_repo = config.control_repo_path || '/opt/puppet/control'
|
21
21
|
user = config.ssh_user || 'lita'
|
22
|
+
username = response.user.name
|
22
23
|
|
23
|
-
response.reply("I'll get right on that. Give me a moment and I'll let you know how it went.")
|
24
|
+
response.reply("#{username}, I'll get right on that. Give me a moment and I'll let you know how it went.")
|
24
25
|
|
25
26
|
ret = nil
|
26
27
|
|
@@ -43,13 +44,12 @@ module Lita
|
|
43
44
|
end
|
44
45
|
|
45
46
|
# build a reply
|
46
|
-
|
47
|
+
response.reply("#{username}, your r10k deployment is done!")
|
47
48
|
if ret
|
48
|
-
|
49
|
+
response.reply ret.stdout.join("\n")
|
49
50
|
else
|
50
|
-
|
51
|
+
response.reply "But didn't seem to work... I think it may have timed out."
|
51
52
|
end
|
52
|
-
response.reply(reply_text)
|
53
53
|
end
|
54
54
|
|
55
55
|
Lita.register_handler(self)
|
data/lita-puppet.gemspec
CHANGED