lita-puppet 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98bc7c0aa0f59507f08f466dd671c6acbdb019d3
4
- data.tar.gz: d009bf33e69a4f9ed040fe6e30f35003e9c9fc4a
3
+ metadata.gz: ad13e64d44dcd2449adc71fc7929d73423550f27
4
+ data.tar.gz: c412fd246b0c04db63b6554725a3c686e332ac03
5
5
  SHA512:
6
- metadata.gz: a106dca419bae42efd34ab4c965780205584cefa64791aa1d54897d0fc9816a60fee50f5cc285e949f597aab1cb93ac79015ad6cd82ab80fdd3b21cd7fdab962
7
- data.tar.gz: 1a5c7247520c9ee9ed2e493952aca40b47d5b8acb1b396bebe476d4940dc199fc78994413f6c703d86033d05908a47a9c74332fa3d6b47fe887070294080b78d
6
+ metadata.gz: 727c36a9efef1520324e086eaf6cf1790239d872a57982be15caae31a4cabac2b8107069bbcfc01491dfcc9020476e2bfa2798f9acd4601832ef193b7b3c6a75
7
+ data.tar.gz: 75b8b0c74e0e9cc51019bec4a3f28304d44b75d21e3dc25490612de921d370c1160fec3156f03527360fbd1dc0d8b8a38f0e3a7c766d73d3ee5da98efc363c8e
@@ -20,6 +20,10 @@ module Lita
20
20
  control_repo = config.control_repo_path || '/opt/puppet/control'
21
21
  user = config.ssh_user || 'lita'
22
22
 
23
+ response.reply("I'll get right on that. Give me a moment and I'll let you know how it went.")
24
+
25
+ ret = nil
26
+
23
27
  Timeout::timeout(600) do
24
28
  puppet_master = Rye::Box.new(config.master_hostname, user: user)
25
29
  puppet_master.cd control_repo
@@ -40,7 +44,11 @@ module Lita
40
44
 
41
45
  # build a reply
42
46
  reply_text = "Here's what happened:\n"
43
- reply_text << ret.stdout.join("\n")
47
+ if ret
48
+ reply_text << ret.stdout.join("\n")
49
+ else
50
+ reply_text = "That didn't seem to work... I think it timed out."
51
+ end
44
52
  response.reply(reply_text)
45
53
  end
46
54
 
data/lita-puppet.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-puppet"
3
- spec.version = "0.1.2"
3
+ spec.version = "0.1.3"
4
4
  spec.authors = ["Jonathan Gnagy"]
5
5
  spec.email = ["jgnagy@knuedge.com"]
6
6
  spec.description = "Some basic Puppet interactions for Lita"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy