Class: Vagrant::Smartos::Zones::Config::GlobalZone
- Inherits:
-
Object
- Object
- Vagrant::Smartos::Zones::Config::GlobalZone
- Defined in:
- lib/vagrant/smartos/zones/config/global_zone.rb
Instance Attribute Summary collapse
-
#forwarded_ssh_port ⇒ Object
Returns the value of attribute forwarded_ssh_port.
-
#platform_image ⇒ Object
Returns the value of attribute platform_image.
-
#platform_image_url ⇒ Object
Returns the value of attribute platform_image_url.
-
#ssh_port ⇒ Object
Returns the value of attribute ssh_port.
Instance Method Summary collapse
- #finalize! ⇒ Object
-
#initialize ⇒ GlobalZone
constructor
A new instance of GlobalZone.
Constructor Details
#initialize ⇒ GlobalZone
Returns a new instance of GlobalZone.
10 11 12 13 14 15 |
# File 'lib/vagrant/smartos/zones/config/global_zone.rb', line 10 def initialize @platform_image = UNSET_VALUE @platform_image_url = UNSET_VALUE @ssh_port = UNSET_VALUE @forwarded_ssh_port = UNSET_VALUE end |
Instance Attribute Details
#forwarded_ssh_port ⇒ Object
Returns the value of attribute forwarded_ssh_port.
8 9 10 |
# File 'lib/vagrant/smartos/zones/config/global_zone.rb', line 8 def forwarded_ssh_port @forwarded_ssh_port end |
#platform_image ⇒ Object
Returns the value of attribute platform_image.
8 9 10 |
# File 'lib/vagrant/smartos/zones/config/global_zone.rb', line 8 def platform_image @platform_image end |
#platform_image_url ⇒ Object
Returns the value of attribute platform_image_url.
8 9 10 |
# File 'lib/vagrant/smartos/zones/config/global_zone.rb', line 8 def platform_image_url @platform_image_url end |
#ssh_port ⇒ Object
Returns the value of attribute ssh_port.
8 9 10 |
# File 'lib/vagrant/smartos/zones/config/global_zone.rb', line 8 def ssh_port @ssh_port end |
Instance Method Details
#finalize! ⇒ Object
17 18 19 20 21 22 |
# File 'lib/vagrant/smartos/zones/config/global_zone.rb', line 17 def finalize! @platform_image = 'latest' if @platform_image == UNSET_VALUE @platform_image_url = nil if @platform_image_url == UNSET_VALUE @ssh_port = 2222 if @ssh_port == UNSET_VALUE @forwarded_ssh_port = 22_022 if @forwarded_ssh_port == UNSET_VALUE end |