chef-silent 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -18,12 +18,12 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- ```ruby
22
- require 'chef-silent'
23
- ```
21
+ require 'chef/silent'
24
22
 
25
23
  in client.rb
26
24
 
25
+ chef-client -F silent
26
+
27
27
  ## Contributing
28
28
 
29
29
  1. Fork it
@@ -1,6 +1,6 @@
1
1
  require 'chef/resource'
2
2
 
3
- class Chef::Resource::Notification
3
+ class Chef::Resource
4
4
 
5
5
  def load_prior_resource
6
6
  begin
@@ -71,13 +71,14 @@ class Chef
71
71
  end
72
72
 
73
73
  def resource_updated(resource, action)
74
- if resource.class == Chef::Resource::File
74
+ if resource.class == Chef::Resource::File || resource.class == Chef::Resource::Template
75
75
  if resource.diff
76
- print "Modify #{resource.name} :\n"
76
+ print "=" * 80 + "\n"
77
77
  ColorDiff.print_diff resource.diff.split('\n')
78
- print "\n"
78
+ print "=" * 80 + "\n"
79
79
  end
80
80
  end
81
+ updated_resources << resource
81
82
  end
82
83
 
83
84
  def display_error(description)
@@ -1,5 +1,5 @@
1
1
  module Chef
2
2
  module Silent
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-silent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: