Class: Cloud::Appliance::Descriptor::Os

Inherits:
Object
  • Object
show all
Includes:
Tools::GeneralInit, Tools::GeneralToHash
Defined in:
lib/cloud/appliance/descriptor/os.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Tools::GeneralToHash

#to_hash

Methods included from Tools::GeneralInit

#initialize

Instance Attribute Details

#archObject

Returns the value of attribute arch.



8
9
10
# File 'lib/cloud/appliance/descriptor/os.rb', line 8

def arch
  @arch
end

#distributionObject

Returns the value of attribute distribution.



8
9
10
# File 'lib/cloud/appliance/descriptor/os.rb', line 8

def distribution
  @distribution
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/cloud/appliance/descriptor/os.rb', line 8

def type
  @type
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/cloud/appliance/descriptor/os.rb', line 8

def version
  @version
end

Instance Method Details

#set_defaultsObject



10
11
12
13
# File 'lib/cloud/appliance/descriptor/os.rb', line 10

def set_defaults
  @arch ||= :x86_64
  @type ||= :linux
end