Sha256: b8580a19467042ccc0db69b76968325073aedfa19dc74b89c99011f556e73ae1
Contents?: true
Size: 546 Bytes
Versions: 31
Compression:
Stored size: 546 Bytes
Contents
require "vagrant-aws/util/timer" module VagrantPlugins module AWS 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
31 entries across 31 versions & 10 rubygems