Class: Beaker::Vagrant::MountFolder
- Inherits:
-
Object
- Object
- Beaker::Vagrant::MountFolder
- Defined in:
- lib/beaker/hypervisor/vagrant/mount_folder.rb
Instance Method Summary collapse
- #from ⇒ Object
-
#initialize(name, spec) ⇒ MountFolder
constructor
A new instance of MountFolder.
- #required_keys_present? ⇒ Boolean
- #to ⇒ Object
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
#from ⇒ Object
12 13 14 |
# File 'lib/beaker/hypervisor/vagrant/mount_folder.rb', line 12 def from @spec[:from] end |
#required_keys_present? ⇒ Boolean
8 9 10 |
# File 'lib/beaker/hypervisor/vagrant/mount_folder.rb', line 8 def required_keys_present? !from.nil? and !to.nil? end |
#to ⇒ Object
16 17 18 |
# File 'lib/beaker/hypervisor/vagrant/mount_folder.rb', line 16 def to @spec[:to] end |