Class: VagrantPlugins::Dotvm::Config::Machine
- Inherits:
-
AbstractConfig
- Object
- AbstractConfig
- VagrantPlugins::Dotvm::Config::Machine
- Includes:
- OptionsSetter
- Defined in:
- lib/vagrant-dotvm/config/machine.rb
Overview
Stores machine configuration
Constant Summary collapse
- OPTIONS_CATEGORIES =
[ :virtualbox ]
Instance Attribute Summary collapse
-
#authorized_keys ⇒ Object
Returns the value of attribute authorized_keys.
-
#autostart ⇒ Object
Returns the value of attribute autostart.
-
#boot_timeout ⇒ Object
Returns the value of attribute boot_timeout.
-
#box ⇒ Object
Returns the value of attribute box.
-
#box_check_update ⇒ Object
Returns the value of attribute box_check_update.
-
#box_download_ca_cert ⇒ Object
Returns the value of attribute box_download_ca_cert.
-
#box_download_ca_path ⇒ Object
Returns the value of attribute box_download_ca_path.
-
#box_download_checksum ⇒ Object
Returns the value of attribute box_download_checksum.
-
#box_download_checksum_type ⇒ Object
Returns the value of attribute box_download_checksum_type.
-
#box_download_client_cert ⇒ Object
Returns the value of attribute box_download_client_cert.
-
#box_download_insecure ⇒ Object
Returns the value of attribute box_download_insecure.
-
#box_download_location_trusted ⇒ Object
Returns the value of attribute box_download_location_trusted.
-
#box_url ⇒ Object
Returns the value of attribute box_url.
-
#box_version ⇒ Object
Returns the value of attribute box_version.
-
#communicator ⇒ Object
Returns the value of attribute communicator.
-
#cpucap ⇒ Object
Returns the value of attribute cpucap.
-
#cpus ⇒ Object
Returns the value of attribute cpus.
-
#graceful_halt_timeout ⇒ Object
Returns the value of attribute graceful_halt_timeout.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#guest ⇒ Object
Returns the value of attribute guest.
-
#hostname ⇒ Object
name.
-
#hosts ⇒ Object
Returns the value of attribute hosts.
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#natnet ⇒ Object
Returns the value of attribute natnet.
-
#networks ⇒ Object
Returns the value of attribute networks.
-
#nick ⇒ Object
Returns the value of attribute nick.
-
#options ⇒ Object
readonly
mixin.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#post_up_message ⇒ Object
Returns the value of attribute post_up_message.
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#provision ⇒ Object
Returns the value of attribute provision.
-
#routes ⇒ Object
Returns the value of attribute routes.
-
#shared_folders ⇒ Object
Returns the value of attribute shared_folders.
-
#usable_port_range ⇒ Object
Returns the value of attribute usable_port_range.
Instance Method Summary collapse
-
#initialize(parent) ⇒ Machine
constructor
A new instance of Machine.
- #name=(value) ⇒ Object
Methods included from OptionsSetter
Methods inherited from AbstractConfig
#convert_array, #ensure_type, #populate
Constructor Details
#initialize(parent) ⇒ Machine
Returns a new instance of Machine.
47 48 49 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 47 def initialize(parent) @parent = parent end |
Instance Attribute Details
#authorized_keys ⇒ Object
Returns the value of attribute authorized_keys.
25 26 27 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 25 def @authorized_keys end |
#autostart ⇒ Object
Returns the value of attribute autostart.
31 32 33 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 31 def autostart @autostart end |
#boot_timeout ⇒ Object
Returns the value of attribute boot_timeout.
26 27 28 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 26 def boot_timeout @boot_timeout end |
#box ⇒ Object
Returns the value of attribute box.
15 16 17 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 15 def box @box end |
#box_check_update ⇒ Object
Returns the value of attribute box_check_update.
27 28 29 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 27 def box_check_update @box_check_update end |
#box_download_ca_cert ⇒ Object
Returns the value of attribute box_download_ca_cert.
38 39 40 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 38 def box_download_ca_cert @box_download_ca_cert end |
#box_download_ca_path ⇒ Object
Returns the value of attribute box_download_ca_path.
39 40 41 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 39 def box_download_ca_path @box_download_ca_path end |
#box_download_checksum ⇒ Object
Returns the value of attribute box_download_checksum.
35 36 37 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 35 def box_download_checksum @box_download_checksum end |
#box_download_checksum_type ⇒ Object
Returns the value of attribute box_download_checksum_type.
36 37 38 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 36 def box_download_checksum_type @box_download_checksum_type end |
#box_download_client_cert ⇒ Object
Returns the value of attribute box_download_client_cert.
37 38 39 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 37 def box_download_client_cert @box_download_client_cert end |
#box_download_insecure ⇒ Object
Returns the value of attribute box_download_insecure.
40 41 42 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 40 def box_download_insecure @box_download_insecure end |
#box_download_location_trusted ⇒ Object
Returns the value of attribute box_download_location_trusted.
41 42 43 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 41 def box_download_location_trusted @box_download_location_trusted end |
#box_url ⇒ Object
Returns the value of attribute box_url.
42 43 44 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 42 def box_url @box_url end |
#box_version ⇒ Object
Returns the value of attribute box_version.
28 29 30 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 28 def box_version @box_version end |
#communicator ⇒ Object
Returns the value of attribute communicator.
43 44 45 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 43 def communicator @communicator end |
#cpucap ⇒ Object
Returns the value of attribute cpucap.
18 19 20 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 18 def cpucap @cpucap end |
#cpus ⇒ Object
Returns the value of attribute cpus.
17 18 19 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 17 def cpus @cpus end |
#graceful_halt_timeout ⇒ Object
Returns the value of attribute graceful_halt_timeout.
29 30 31 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 29 def graceful_halt_timeout @graceful_halt_timeout end |
#groups ⇒ Object
Returns the value of attribute groups.
24 25 26 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 24 def groups @groups end |
#guest ⇒ Object
Returns the value of attribute guest.
44 45 46 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 44 def guest @guest end |
#hostname ⇒ Object
name
14 15 16 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 14 def hostname @hostname end |
#hosts ⇒ Object
Returns the value of attribute hosts.
32 33 34 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 32 def hosts @hosts end |
#memory ⇒ Object
Returns the value of attribute memory.
16 17 18 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 16 def memory @memory end |
#natnet ⇒ Object
Returns the value of attribute natnet.
20 21 22 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 20 def natnet @natnet end |
#networks ⇒ Object
Returns the value of attribute networks.
21 22 23 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 21 def networks @networks end |
#nick ⇒ Object
Returns the value of attribute nick.
13 14 15 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 13 def nick @nick end |
#options ⇒ Object (readonly)
mixin
33 34 35 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 33 def @options end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
12 13 14 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 12 def parent @parent end |
#post_up_message ⇒ Object
Returns the value of attribute post_up_message.
30 31 32 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 30 def @post_up_message end |
#primary ⇒ Object
Returns the value of attribute primary.
19 20 21 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 19 def primary @primary end |
#provision ⇒ Object
Returns the value of attribute provision.
23 24 25 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 23 def provision @provision end |
#routes ⇒ Object
Returns the value of attribute routes.
22 23 24 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 22 def routes @routes end |
#shared_folders ⇒ Object
Returns the value of attribute shared_folders.
34 35 36 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 34 def shared_folders @shared_folders end |
#usable_port_range ⇒ Object
Returns the value of attribute usable_port_range.
45 46 47 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 45 def usable_port_range @usable_port_range end |
Instance Method Details
#name=(value) ⇒ Object
51 52 53 |
# File 'lib/vagrant-dotvm/config/machine.rb', line 51 def name=(value) @hostname = value end |