Sha256: 348802e885df428104bc101cdb0de8e97de40a1980f14e60abc52a2da2433f7d
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
require "vagrant-ganeti/util/timer" module VagrantPlugins module GANETI 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] puts "Done Timed" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-ganeti-0.1.1 | lib/vagrant-ganeti/action/timed_provision.rb |
vagrant-ganeti-0.0.1 | lib/vagrant-plugin-ganeti/action/timed_provision.rb |