class VagrantPlugins::ProviderLibvirt::Action::StartShutdownTimer
To wrap GracefulShutdown need to track the time taken
Public Class Methods
new(app, _env)
click to toggle source
# File lib/vagrant-libvirt/action/shutdown_domain.rb, line 8 def initialize(app, _env) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-libvirt/action/shutdown_domain.rb, line 12 def call(env) env[:shutdown_start_time] = Time.now @app.call(env) end