Sha256: 2310db1c1f0720339abdb40aa73ac51d55dfc921cee271073e518e11d94c0422
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 Bytes
Contents
# # Author:: Mohit Sethi (<mohit@sethis.in>) # Copyright:: Copyright (c) 2013 Mohit Sethi. # require "vagrant-hp/util/timer" module VagrantPlugins module HP module Action # This is the same as the builtin provision except it times the # provisioner runs. class TimedProvision < Vagrant::Action::Builtin::Provision def run_provisioner(env, p) env[:ui].info("Insde TimedProvision") timer = Util::Timer.time do super end env[:metrics] ||= {} env[:metrics]["provisioner_times"] ||= [] env[:metrics]["provisioner_times"] << [p.class.to_s, timer] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-hp-0.1.0 | lib/vagrant-hp/action/timed_provision.rb |