chef-handler-consul-release 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/lib/chef/handler/consul_release.rb +6 -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: 2707a0912d0dbcb457cb55c3efb4aa74aa35865c
|
4
|
+
data.tar.gz: 0889ee4bf25e2807734dddbf765c9ddec25a736a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|