18 lines
383 B
Ruby
18 lines
383 B
Ruby
module VagrantPlugins
|
|
module DockerProvider
|
|
module Action
|
|
# This middleware is used with Call to test if we're using a host VM.
|
|
class HostMachineRequired
|
|
def initialize(app, env)
|
|
@app = app
|
|
end
|
|
|
|
def call(env)
|
|
env[:result] = env[:machine].provider.host_vm?
|
|
@app.call(env)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|