puppet-profiler 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/puppet-profiler.rb +2 -2
- data/puppet-profiler.gemspec +1 -1
- metadata +3 -3
data/lib/puppet-profiler.rb
CHANGED
@@ -4,10 +4,10 @@ class PuppetProfiler
|
|
4
4
|
|
5
5
|
times = []
|
6
6
|
resources = output.select { |line|
|
7
|
-
line =~ /.+:
|
7
|
+
line =~ /.+: E?valuated in [\d\.]+ seconds$/
|
8
8
|
}.each { |line|
|
9
9
|
res_line, junk, eval_line = line.rpartition(':')
|
10
|
-
if eval_line =~ /
|
10
|
+
if eval_line =~ / E?valuated in ([\d\.]+) seconds$/
|
11
11
|
time = $1.to_f
|
12
12
|
end
|
13
13
|
junk, junk, res_line = res_line.partition(':')
|
data/puppet-profiler.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'puppet-profiler'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.2'
|
4
4
|
s.homepage = 'https://github.com/rodjek/puppet-profiler/'
|
5
5
|
s.summary = 'Find the slow resources in your Puppet manifests'
|
6
6
|
s.description = 'Analyses your Puppet runs on a host and returns a list of
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-profiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Sharpe
|