isbumiawake-chef 0.1.3 → 0.1.4
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/isbumiawake/chef/handler.rb +3 -2
- data/lib/isbumiawake/chef/version.rb +1 -1
- metadata +1 -1
@@ -1,4 +1,5 @@
|
|
1
1
|
require "net/http"
|
2
|
+
require "open-uri"
|
2
3
|
require 'chef/handler'
|
3
4
|
module Isbumiawake
|
4
5
|
module Chef
|
@@ -9,7 +10,7 @@ module Isbumiawake
|
|
9
10
|
end
|
10
11
|
|
11
12
|
def report
|
12
|
-
|
13
|
+
open(self.url)#, :message => self.message).body
|
13
14
|
end
|
14
15
|
|
15
16
|
def url
|
@@ -17,7 +18,7 @@ module Isbumiawake
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def message
|
20
|
-
"Chef run on node #{node.fqdn} #{
|
21
|
+
"Chef run on node #{node.fqdn} #{success? ? "successfully" : "NOT successfully"} completed in #{elapsed_time} (#{start_time}-#{end_time}) and updated: #{updated_resources.join(",")}"
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|