Sha256: 40b7b03a650085ceae0d77c83f3fc8aea57e93025a5a85a2561eef03b6faf32b
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
require "vagrant-hyperkit/util/timer" module VagrantPlugins module HYPERKIT 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, name, p) timer = Util::Timer.time do super end env[:metrics] ||= {} env[:metrics]["provisioner_times"] ||= [] env[:metrics]["provisioner_times"] << [name, timer] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-hyperkit-0.4.3 | lib/vagrant-hyperkit/action/timed_provision.rb |