chef-journalist 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Sean Porter
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.org ADDED
@@ -0,0 +1,27 @@
1
+ * Install
2
+
3
+ : gem install chef-journalist
4
+
5
+ * Usage
6
+
7
+ *** Configure Chef To Use The Handler
8
+
9
+ Append the following to your Chef client configs, usually at =/etc/chef/client.rb=
10
+
11
+ : require "chef-journalist"
12
+ : report_handlers << Journalist.new
13
+ : exception_handlers << Journalist.new
14
+
15
+ You can provide an array of resource types to be included in the report, default is all
16
+
17
+ : report_handlers << Journalist.new(%w[template cookbook_file])
18
+
19
+ *** Example Output
20
+
21
+ : Running report handlers
22
+ : Writing the updated resource report ...
23
+ : template[/etc/motd]
24
+
25
+ * License
26
+
27
+ Chef-Journalist is released under the [[https://github.com/portertech/chef-journalist/blob/master/MIT-LICENSE.txt][MIT license]].
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "chef-journalist"
3
- s.version = "0.0.2"
3
+ s.version = "0.1.0"
4
4
  s.authors = ["Sean Porter"]
5
5
  s.email = ["portertech@gmail.com"]
6
6
  s.homepage = "https://github.com/portertech/chef-journalist"
@@ -3,11 +3,11 @@ require 'chef/handler'
3
3
 
4
4
  class Journalist < Chef::Handler
5
5
  def initialize(resource_types=[])
6
- Chef::Log.info "Generating updated resource report ..."
7
6
  @resource_types = resource_types.map {|t| t.to_sym }
8
7
  end
9
8
 
10
9
  def report
10
+ Chef::Log.info "Writing the updated resource report ..."
11
11
  updated_resources = case
12
12
  when @resource_types.empty?
13
13
  run_status.updated_resources
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 2
10
- version: 0.0.2
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Porter
@@ -31,7 +31,8 @@ extra_rdoc_files: []
31
31
  files:
32
32
  - .gitignore
33
33
  - Gemfile
34
- - README
34
+ - MIT-LICENSE.txt
35
+ - README.org
35
36
  - Rakefile
36
37
  - chef-journalist.gemspec
37
38
  - lib/chef-journalist.rb
data/README DELETED
File without changes