vagrant/plugins/providers/docker/action/is_build.rb

17 lines
354 B
Ruby
Raw Normal View History

2014-04-19 00:45:24 +00:00
module VagrantPlugins
module DockerProvider
module Action
class IsBuild
def initialize(app, env)
@app = app
end
def call(env)
2016-10-16 21:51:33 +00:00
env[:result] = (!!env[:machine].provider_config.build_dir || !!env[:machine].provider_config.git_repo)
2014-04-19 00:45:24 +00:00
@app.call(env)
end
end
end
end
end