lib/vagrant-unison2/config.rb in vagrant-unison2-1.2.4 vs lib/vagrant-unison2/config.rb in vagrant-unison2-2.0.0
- old
+ new
@@ -13,11 +13,11 @@
# @return [String]
attr_accessor :guest_folder
# Pattern of files to ignore.
#
- # @return [String]
+ # @return [String, Array<String>]
attr_accessor :ignore
# Repeat speed.
#
# @return [String]
@@ -47,18 +47,25 @@
# perms arg value
#
# @return [int]
attr_accessor :perms
- def initialize(region_specific=false)
+ # Airlab-specific config option to leave off the Vagrant identity file, so
+ # SSH will just use ssh-agent
+ #
+ # @return [Boolean]
+ attr_accessor :ssh_use_agent
+
+ def initialize(region_specific = false)
@host_folder = UNSET_VALUE
@guest_folder = UNSET_VALUE
@ignore = UNSET_VALUE
@repeat = UNSET_VALUE
@ssh_host = UNSET_VALUE
@ssh_port = UNSET_VALUE
@ssh_user = UNSET_VALUE
+ @ssh_use_agent = UNSET_VALUE
@mem_cap_mb = UNSET_VALUE
@perms = UNSET_VALUE
end
def finalize!
@@ -70,9 +77,10 @@
@ssh_host = '127.0.0.1' if @ssh_host == UNSET_VALUE
@ssh_port = 2222 if @ssh_port == UNSET_VALUE
@ssh_user = 'vagrant' if @ssh_user == UNSET_VALUE
@mem_cap_mb = 200 if @mem_cap_mb == UNSET_VALUE
@perms = nil if @perms == UNSET_VALUE
+ @ssh_use_agent = false if @ssh_use_agent == UNSET_VALUE
# Mark that we finalized
@__finalized = true
end