Class: Vagrant::VSshFs::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/valkyrie-sshfs/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#enabledObject

Returns the value of attribute enabled.



6
7
8
# File 'lib/valkyrie-sshfs/config.rb', line 6

def enabled
  @enabled
end

#host_addrObject

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_guestObject

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

#pathsObject

Returns the value of attribute paths.



4
5
6
# File 'lib/valkyrie-sshfs/config.rb', line 4

def paths
  @paths
end

#usernameObject

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