Properly merge forward_agent and other SSH configs [GH-651]

This commit is contained in:
Mitchell Hashimoto 2012-01-18 18:47:28 -08:00
parent ce53263a11
commit c600d9237b
3 changed files with 2 additions and 7 deletions

View File

@ -1,6 +1,6 @@
## 0.9.2 (unreleased) ## 0.9.2 (unreleased)
- Fix `forward_agent` not working when outside of blocks. [GH-651]
## 0.9.1 (January 18, 2012) ## 0.9.1 (January 18, 2012)

View File

@ -11,6 +11,7 @@ Vagrant::Config.run do |config|
config.ssh.timeout = 10 config.ssh.timeout = 10
config.ssh.forward_agent = false config.ssh.forward_agent = false
config.ssh.forward_x11 = false config.ssh.forward_x11 = false
config.ssh.shell = "bash"
config.vm.auto_port_range = (2200..2250) config.vm.auto_port_range = (2200..2250)
config.vm.box_url = nil config.vm.box_url = nil

View File

@ -13,12 +13,6 @@ module Vagrant
attr_accessor :forward_x11 attr_accessor :forward_x11
attr_accessor :shell attr_accessor :shell
def initialize
@shell = "bash"
@forward_agent = false
@forward_x11 = false
end
def forwarded_port_key=(value) def forwarded_port_key=(value)
raise Errors::DeprecationError, :message => <<-MESSAGE raise Errors::DeprecationError, :message => <<-MESSAGE
`config.ssh.forwarded_port_key` is now gone. You must now use `config.ssh.forwarded_port_key` is now gone. You must now use