chef-formatter-elapsed_time 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +14 -0
- data/Rakefile +3 -0
- data/chef-formatter-elapsed_time.gemspec +18 -0
- data/lib/chef-formatter-elapsed_time.rb +14 -0
- metadata +56 -0
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
|
4
|
+
name = 'chef-formatter-elapsed_time'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = name
|
8
|
+
s.version = '0.0.0'
|
9
|
+
s.authors = ['chris']
|
10
|
+
s.email = ['locochris@locomote.com.au']
|
11
|
+
s.homepage = "https://github.com/locomote/#{name}"
|
12
|
+
|
13
|
+
s.summary = 'Elapsed time chef formatter'
|
14
|
+
s.description = 'Elapsed time chef formatter'
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.require_paths = ['lib']
|
18
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'chef/formatters/minimal'
|
2
|
+
|
3
|
+
class Chef
|
4
|
+
module Formatters
|
5
|
+
class ElapsedTime < Formatters::Minimal
|
6
|
+
cli_name(:elapsed_time)
|
7
|
+
|
8
|
+
def resource_updated(resource, action)
|
9
|
+
super
|
10
|
+
puts "#{resource.inspect} #{action.inspect}"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chef-formatter-elapsed_time
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- chris
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-01-15 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Elapsed time chef formatter
|
15
|
+
email:
|
16
|
+
- locochris@locomote.com.au
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- Gemfile
|
22
|
+
- Gemfile.lock
|
23
|
+
- Rakefile
|
24
|
+
- chef-formatter-elapsed_time.gemspec
|
25
|
+
- lib/chef-formatter-elapsed_time.rb
|
26
|
+
homepage: https://github.com/locomote/chef-formatter-elapsed_time
|
27
|
+
licenses: []
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
require_paths:
|
31
|
+
- lib
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
segments:
|
39
|
+
- 0
|
40
|
+
hash: 1290795507383933165
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
hash: 1290795507383933165
|
50
|
+
requirements: []
|
51
|
+
rubyforge_project:
|
52
|
+
rubygems_version: 1.8.24
|
53
|
+
signing_key:
|
54
|
+
specification_version: 3
|
55
|
+
summary: Elapsed time chef formatter
|
56
|
+
test_files: []
|