From 052ee624bb5df8895bdc7d76c50d7632f2996fb5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 18 Apr 2014 17:45:24 -0700 Subject: [PATCH] providers/docker: forgot a file --- plugins/providers/docker/action/is_build.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugins/providers/docker/action/is_build.rb diff --git a/plugins/providers/docker/action/is_build.rb b/plugins/providers/docker/action/is_build.rb new file mode 100644 index 000000000..fc2c4be8d --- /dev/null +++ b/plugins/providers/docker/action/is_build.rb @@ -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