Class: Beaker::Vagrant::MountFolder

Inherits:
Object
  • Object
show all
Defined in:
lib/beaker/hypervisor/vagrant/mount_folder.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, spec) ⇒ MountFolder

Returns a new instance of MountFolder.



3
4
5
6
# File 'lib/beaker/hypervisor/vagrant/mount_folder.rb', line 3

def initialize(name, spec)
  @name = name
  @spec = spec
end

Instance Method Details

#fromObject



12
13
14
# File 'lib/beaker/hypervisor/vagrant/mount_folder.rb', line 12

def from
  @spec[:from]
end

#required_keys_present?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/beaker/hypervisor/vagrant/mount_folder.rb', line 8

def required_keys_present?
  !from.nil? and !to.nil?
end

#toObject



16
17
18
# File 'lib/beaker/hypervisor/vagrant/mount_folder.rb', line 16

def to
  @spec[:to]
end