nxlog-chef-formatter 1.0.0

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 ADDED
@@ -0,0 +1,4 @@
1
+ nxlog-chef-formatter
2
+ ====================
3
+
4
+ formatter for nxlog which allows for mx_multiline to work properly.
@@ -0,0 +1,27 @@
1
+ require 'chef/formatters/minimal'
2
+
3
+ class Chef
4
+ module Formatters
5
+ class NyanCat < Formatters::Minimal
6
+
7
+ cli_name(:nxlog)
8
+
9
+ def run_start(version)
10
+ Chef::Log.warn("<< BEGIN >>")
11
+ super
12
+ end
13
+
14
+ # Called at the end of the Chef run.
15
+ def run_completed(node)
16
+ super
17
+ Chef::Log.warn("<< END >>")
18
+ end
19
+
20
+ # Called at the end of the Chef run.
21
+ def run_failed(exception)
22
+ super
23
+ Chef::Log.warn("<< END >>")
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,18 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "nxlog-chef-formatter"
5
+ s.version = "1.0.0"
6
+ s.authors = ["Justin Schuhmann"]
7
+ s.email = ["jmschu02@gmail.com"]
8
+ s.homepage = "https://github.com/EasyAsABC123/nxlog-chef-formatter"
9
+ s.summary = %q{NXLOG Formatter for Chef}
10
+ s.description = %q{NXLOG Formatter for Chef}
11
+
12
+ s.rubyforge_project = "nxlog-chef-formatter"
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
18
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nxlog-chef-formatter
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Justin Schuhmann
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-08-28 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: NXLOG Formatter for Chef
15
+ email:
16
+ - jmschu02@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.md
22
+ - lib/nxlog-chef-formatter.rb
23
+ - nxlog-chef-formatter.gemspec
24
+ homepage: https://github.com/EasyAsABC123/nxlog-chef-formatter
25
+ licenses: []
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ! '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubyforge_project: nxlog-chef-formatter
44
+ rubygems_version: 1.8.24
45
+ signing_key:
46
+ specification_version: 3
47
+ summary: NXLOG Formatter for Chef
48
+ test_files: []