chef-handler-consul-release 0.2.0 → 0.2.1

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: 12473fab3c45dc23a681ecac9c3f5c1af6767b10
4
- data.tar.gz: e0e779e31edc924854e946f1e839bf7109a4c91f
3
+ metadata.gz: 2707a0912d0dbcb457cb55c3efb4aa74aa35865c
4
+ data.tar.gz: 0889ee4bf25e2807734dddbf765c9ddec25a736a
5
5
  SHA512:
6
- metadata.gz: 3b3c4e3e0613afcdcdbbbe479ec287c4838e01bda09c71e41013335827c31ed10e931ebec76d51c5288f9fbf9532c0da1652ab65731a337ee8dac22f80a530f1
7
- data.tar.gz: de102e20d56402a4dea3f6e83b1a7359a3fdd8454b537a940f9d30082f7204824d178fc86cf6f7559ab3e87db38465ff70de5a9494f9da8e94182fa949f699ff
6
+ metadata.gz: 319abcbf3d799524e7e5f6cb2648078df0f4e1c1aaac8d0d1d4b15822da507476e374785da1ee332435aa3cfddeeb1029f3ddceae14777e69e79e3bd48cf61a7
7
+ data.tar.gz: b64b13f96f69ad4deef4115cde787b6a4acacea72554adaa6b52b7aa8357c0f482b0ef8b232caef537e393c68d464867964214a78201e19952e57b323e95750b
@@ -25,6 +25,11 @@ class Chef
25
25
  @host = host
26
26
  @session = session
27
27
  @key = key
28
+ Chef::Log.info("Consul release handler host: #{@host}")
29
+ Chef::Log.info("Consul release handler key: #{@key}")
30
+ Chef::Log.info("Consul release handler session: #{@session}")
31
+
32
+
28
33
  end
29
34
 
30
35
  def report
@@ -33,7 +38,7 @@ class Chef
33
38
  Diplomat.configure do |config|
34
39
  config.url = 'http://' + @host + ':8500'
35
40
  end
36
-
41
+ Chef::Log.info("Releasing consul lock #{@key}?release?#{@session}@#{@host}")
37
42
  Diplomat::Lock.release(@key,@session)
38
43
  Diplomat::Session.destroy(@session)
39
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-consul-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Roy