From 168715ad7d2bd8a703b1ddb99c0fa06c706930f3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 29 Oct 2014 00:05:31 -0700 Subject: [PATCH] push/harmony: ability to set uploader path --- plugins/pushes/harmony/config.rb | 10 ++++++++++ test/unit/plugins/pushes/harmony/config_test.rb | 1 + 2 files changed, 11 insertions(+) diff --git a/plugins/pushes/harmony/config.rb b/plugins/pushes/harmony/config.rb index 5053c328e..d9890079e 100644 --- a/plugins/pushes/harmony/config.rb +++ b/plugins/pushes/harmony/config.rb @@ -33,12 +33,21 @@ module VagrantPlugins # @return [Boolean] attr_accessor :vcs + # The path to the uploader binary to shell out to. This usually + # is only set for debugging/development. If not set, the uploader + # will be looked for within the Vagrant installer dir followed by + # the PATH. + # + # @return [String] + attr_accessor :uploader_path + def initialize @app = UNSET_VALUE @dir = UNSET_VALUE @vcs = UNSET_VALUE @include = [] @exclude = [] + @uploader_path = UNSET_VALUE end def merge(other) @@ -56,6 +65,7 @@ module VagrantPlugins def finalize! @app = nil if @app == UNSET_VALUE @dir = "." if @dir == UNSET_VALUE + @uploader_path = nil if @uploader_path == UNSET_VALUE @vcs = true if @vcs == UNSET_VALUE end diff --git a/test/unit/plugins/pushes/harmony/config_test.rb b/test/unit/plugins/pushes/harmony/config_test.rb index de5ce1c33..0806156e3 100644 --- a/test/unit/plugins/pushes/harmony/config_test.rb +++ b/test/unit/plugins/pushes/harmony/config_test.rb @@ -35,6 +35,7 @@ describe VagrantPlugins::HarmonyPush::Config do its(:dir) { should eq(".") } its(:exclude) { should be_empty } its(:include) { should be_empty } + its(:uploader_path) { should be_nil } its(:vcs) { should be_true } end