Pass in a message to the command as well

This commit is contained in:
Seth Vargo 2015-02-03 19:20:27 -05:00
parent d29a474fbb
commit 82b24e9a8f
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ module VagrantPlugins
cmd += metadata.map { |k,v| ["-metadata", "#{k}=#{v}"] }
cmd += ["-address", config.address] if config.address
cmd += ["-token", config.token] if config.token
cmd += ["-message", message] if message
cmd << config.app
cmd << File.expand_path(config.dir, env.root_path)
Vagrant::Util::SafeExec.exec(uploader, *cmd.flatten)