Class: Cloud::Appliance::Descriptor::Os
- Inherits:
-
Object
- Object
- Cloud::Appliance::Descriptor::Os
- Includes:
- Tools::GeneralInit, Tools::GeneralToHash
- Defined in:
- lib/cloud/appliance/descriptor/os.rb
Instance Attribute Summary collapse
-
#arch ⇒ Object
Returns the value of attribute arch.
-
#distribution ⇒ Object
Returns the value of attribute distribution.
-
#type ⇒ Object
Returns the value of attribute type.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Methods included from Tools::GeneralToHash
Methods included from Tools::GeneralInit
Instance Attribute Details
#arch ⇒ Object
Returns the value of attribute arch.
8 9 10 |
# File 'lib/cloud/appliance/descriptor/os.rb', line 8 def arch @arch end |
#distribution ⇒ Object
Returns the value of attribute distribution.
8 9 10 |
# File 'lib/cloud/appliance/descriptor/os.rb', line 8 def distribution @distribution end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/cloud/appliance/descriptor/os.rb', line 8 def type @type end |
#version ⇒ Object
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_defaults ⇒ Object
10 11 12 13 |
# File 'lib/cloud/appliance/descriptor/os.rb', line 10 def set_defaults @arch ||= :x86_64 @type ||= :linux end |