Class: VagrantPlugins::LibcloudHelper::Config
- Inherits:
-
Object
- Object
- VagrantPlugins::LibcloudHelper::Config
- Defined in:
- lib/vagrant-libcloud-helper/config.rb
Instance Attribute Summary collapse
-
#allocate_sata_ports ⇒ Object
(also: #allocate_sata_ports?)
Returns the value of attribute allocate_sata_ports.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #validate(machine) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 |
# File 'lib/vagrant-libcloud-helper/config.rb', line 9 def initialize @allocate_sata_ports = UNSET_VALUE end |
Instance Attribute Details
#allocate_sata_ports ⇒ Object Also known as: allocate_sata_ports?
Returns the value of attribute allocate_sata_ports.
5 6 7 |
# File 'lib/vagrant-libcloud-helper/config.rb', line 5 def allocate_sata_ports @allocate_sata_ports end |
Instance Method Details
#finalize! ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/vagrant-libcloud-helper/config.rb', line 13 def finalize! if @allocate_sata_ports == UNSET_VALUE @allocate_sata_ports = 0 else @allocate_sata_ports = [@allocate_sata_ports, 30].min end end |
#validate(machine) ⇒ Object
21 22 23 |
# File 'lib/vagrant-libcloud-helper/config.rb', line 21 def validate(machine) {} end |