lib/chap/hook.rb in chap-0.0.9 vs lib/chap/hook.rb in chap-0.1.0
- old
+ new
@@ -1,8 +1,9 @@
module Chap
class Hook
include SpecialMethods
+ include Benchmarking
attr_reader :options, :config
def initialize(path, config)
@path = path
@config = config
@@ -43,8 +44,9 @@
def run(cmd)
cmd = "#{@with} #{cmd}"
config.run(cmd)
end
+ benchmark_each :run, "hook"
end
end
\ No newline at end of file