wjimenez5271-chef-handler-mail 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: db49c7bb20f9f17d0dff40b4b78817ae2a182f81
4
- data.tar.gz: 3bbec71dc34ffe60d8a5ce1ad1813f511a265e31
3
+ metadata.gz: 8ed7ea46bb28eadd629aff3babe6337cbb6763a1
4
+ data.tar.gz: f225456ad819ecc4bedb62ddfb702c511af35026
5
5
  SHA512:
6
- metadata.gz: 36aaea580d19ee0311dc99e2c3caa51e5f6abcc0d7acb4ee405480b368799b96eb5490ade4eedc0ace39b4d60cdb2d8620c436476b116806111e010832ebb8f7
7
- data.tar.gz: 3492b88d63f0d0c6253ea8cf3611c4e26525eecfb779925a8d929c45ec32f6bc47aac5c7428b8e6cfb7b2d058e00c7b98cac30db2b9d96400810a37b62f146ae
6
+ metadata.gz: 7a98fb6b3b10a43f3a6e7c1862c501cface3156bd1cef3913c55aad36f0baed36af1de4b325ddd0d552e9a2b4ab0f76e19fc818f19d7c80cf751e2037f225465
7
+ data.tar.gz: 6c2ae096f45f6ba4e0d6ff2e9d3f2ff0d1cd632d1c89334656cbe0f844ca29c1d5be011123e8633f51f5501ec704754e74bab5397c507ca4fff8f5495c52ecaf
@@ -17,13 +17,14 @@ require 'chef'
17
17
  require 'chef/handler'
18
18
  require 'erubis'
19
19
  require 'pony'
20
+ require 'socket'
20
21
 
21
22
  class MailHandler < Chef::Handler
22
23
  attr_reader :options
23
24
  def initialize(opts = {})
24
25
  @options = {
25
26
  :to_address => "root",
26
- :from_address => "chef-client@#{node.fqdn}",
27
+ :from_address => "chef-client@#{Socket.gethostname}",
27
28
  :template_path => File.join(File.dirname(__FILE__), "mail.erb")
28
29
  }
29
30
  @options.merge! opts
@@ -1,3 +1,3 @@
1
1
  class MailHandler
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wjimenez5271-chef-handler-mail
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
  - William Jimenez
@@ -33,9 +33,9 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - LICENSE
35
35
  - README.md
36
- - lib/chef/handler/mail/version.rb
37
- - lib/chef/handler/mail.erb
38
- - lib/chef/handler/mail.rb
36
+ - lib/wjimenez5271/chef/handler/mail/version.rb
37
+ - lib/wjimenez5271/chef/handler/mail.erb
38
+ - lib/wjimenez5271/chef/handler/mail.rb
39
39
  homepage: https://github.com/wjimenez5271/chef-handler-mail
40
40
  licenses: []
41
41
  metadata: {}