Sha256: f37210761367daa438e1a50fd2b0c26f9f3ab4ebd3b5ebd6b106a13057fedb0c
Contents?: true
Size: 483 Bytes
Versions: 14
Compression:
Stored size: 483 Bytes
Contents
module Vagrant module LXC module Action class CheckRunning def initialize(app, env) @app = app end def call(env) if env[:machine].state.id != :running raise Vagrant::Errors::VMNotRunningError end # Call the next if we have one (but we shouldn't, since this # middleware is built to run with the Call-type middlewares) @app.call(env) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems