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