Class: Vagrant::Smartos::Zones::Util::ZoneImage

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/smartos/zones/util/zone_image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#machineObject (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

#imageObject



14
15
16
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 14

def image
  machine.config.zone.image
end

#install_override?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 18

def install_override?
  !!override
end

#overrideObject



22
23
24
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 22

def override
  plugin_config["dataset.#{image}"]
end

#override_uuidObject



26
27
28
# File 'lib/vagrant/smartos/zones/util/zone_image.rb', line 26

def override_uuid
  @override_uuid ||= manifest.uuid
end