Class: Vagrant::Smartos::Zones::Util::ZoneImage
- Inherits:
-
Object
- Object
- Vagrant::Smartos::Zones::Util::ZoneImage
- Defined in:
- lib/vagrant/smartos/zones/util/zone_image.rb
Instance Attribute Summary collapse
-
#machine ⇒ Object
readonly
Returns the value of attribute machine.
Instance Method Summary collapse
- #image ⇒ Object
-
#initialize(machine) ⇒ ZoneImage
constructor
A new instance of ZoneImage.
- #install_override? ⇒ Boolean
- #override ⇒ Object
- #override_uuid ⇒ Object
Constructor Details
#initialize(machine) ⇒ ZoneImage
Returns a new instance of ZoneImage.
10 11 12 |
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 10 def initialize(machine) @machine = machine end |
Instance Attribute Details
#machine ⇒ Object (readonly)
Returns the value of attribute machine.
8 9 10 |
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 8 def machine @machine end |
Instance Method Details
#image ⇒ Object
14 15 16 |
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 14 def image machine.config.zone.image end |
#install_override? ⇒ Boolean
18 19 20 |
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 18 def install_override? !!override end |
#override ⇒ Object
22 23 24 |
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 22 def override plugin_config["dataset.#{image}"] end |
#override_uuid ⇒ Object
26 27 28 |
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 26 def override_uuid @override_uuid ||= manifest.uuid end |