Class: Vagrant::VSshFs::Config
- Inherits:
-
Object
- Object
- Vagrant::VSshFs::Config
- Defined in:
- lib/valkyrie-sshfs/config.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#host_addr ⇒ Object
Returns the value of attribute host_addr.
-
#mount_on_guest ⇒ Object
Returns the value of attribute mount_on_guest.
-
#paths ⇒ Object
Returns the value of attribute paths.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #merge(other) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 13 14 |
# File 'lib/valkyrie-sshfs/config.rb', line 10 def initialize @paths = {} @username = nil @enabled = true end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
6 7 8 |
# File 'lib/valkyrie-sshfs/config.rb', line 6 def enabled @enabled end |
#host_addr ⇒ Object
Returns the value of attribute host_addr.
8 9 10 |
# File 'lib/valkyrie-sshfs/config.rb', line 8 def host_addr @host_addr end |
#mount_on_guest ⇒ Object
Returns the value of attribute mount_on_guest.
7 8 9 |
# File 'lib/valkyrie-sshfs/config.rb', line 7 def mount_on_guest @mount_on_guest end |
#paths ⇒ Object
Returns the value of attribute paths.
4 5 6 |
# File 'lib/valkyrie-sshfs/config.rb', line 4 def paths @paths end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/valkyrie-sshfs/config.rb', line 5 def username @username end |
Instance Method Details
#merge(other) ⇒ Object
16 17 18 19 20 |
# File 'lib/valkyrie-sshfs/config.rb', line 16 def merge(other) super.tap do |result| result.paths = @paths.merge(other.paths) end end |