chef-journalist 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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "chef-journalist"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.authors = ["Sean Porter"]
5
5
  s.email = ["portertech@gmail.com"]
6
6
  s.homepage = "https://github.com/portertech/chef-journalist"
@@ -1,22 +1,19 @@
1
1
  require 'rubygems'
2
2
  require 'chef/handler'
3
3
 
4
- module Chef
5
- class Journalist < Chef::Handler
6
-
7
- def initialize(resource_types=[])
8
- Chef::Log.info "Generating updated resource report ..."
9
- @resource_types = resource_types.map {|t| t.to_sym }
10
- end
4
+ class Journalist < Chef::Handler
5
+ def initialize(resource_types=[])
6
+ Chef::Log.info "Generating updated resource report ..."
7
+ @resource_types = resource_types.map {|t| t.to_sym }
8
+ end
11
9
 
12
- def report
13
- updated_resources = case
14
- when @resource_types.empty?
15
- run_status.updated_resources
16
- else
17
- run_status.updated_resources.select {|r| @resource_types.include? r.resource_name }
18
- end
19
- updated_resources.each {|r| Chef::Log.info " #{r.to_s}" }
10
+ def report
11
+ updated_resources = case
12
+ when @resource_types.empty?
13
+ run_status.updated_resources
14
+ else
15
+ run_status.updated_resources.select {|r| @resource_types.include? r.resource_name }
20
16
  end
17
+ updated_resources.each {|r| Chef::Log.info " #{r}" }
21
18
  end
22
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-journalist
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Porter