17 lines
308 B
Ruby
17 lines
308 B
Ruby
|
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
|