mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
providers/docker: forgot a file
This commit is contained in:
parent
f78f72920c
commit
052ee624bb
1 changed files with 16 additions and 0 deletions
16
plugins/providers/docker/action/is_build.rb
Normal file
16
plugins/providers/docker/action/is_build.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
module VagrantPlugins
|
||||
module DockerProvider
|
||||
module Action
|
||||
class IsBuild
|
||||
def initialize(app, env)
|
||||
@app = app
|
||||
end
|
||||
|
||||
def call(env)
|
||||
env[:result] = !!env[:machine].provider_config.build_dir
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue