Class: OsCtl::Image::ContainerConfig
- Inherits:
-
Object
- Object
- OsCtl::Image::ContainerConfig
- Defined in:
- lib/osctl/image/container_config.rb
Instance Attribute Summary collapse
-
#arch ⇒ Object
Returns the value of attribute arch.
-
#dataset ⇒ Object
Returns the value of attribute dataset.
-
#distribution ⇒ Object
Returns the value of attribute distribution.
-
#rootfs ⇒ Object
Returns the value of attribute rootfs.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #datasets ⇒ Object
- #dump_config ⇒ Object
- #group ⇒ Object
- #id ⇒ Object
- #override_with(opts) ⇒ Object
- #user ⇒ Object
Instance Attribute Details
#arch ⇒ Object
Returns the value of attribute arch.
3 4 5 |
# File 'lib/osctl/image/container_config.rb', line 3 def arch @arch end |
#dataset ⇒ Object
Returns the value of attribute dataset.
3 4 5 |
# File 'lib/osctl/image/container_config.rb', line 3 def dataset @dataset end |
#distribution ⇒ Object
Returns the value of attribute distribution.
3 4 5 |
# File 'lib/osctl/image/container_config.rb', line 3 def distribution @distribution end |
#rootfs ⇒ Object
Returns the value of attribute rootfs.
3 4 5 |
# File 'lib/osctl/image/container_config.rb', line 3 def rootfs @rootfs end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/osctl/image/container_config.rb', line 3 def version @version end |
Instance Method Details
#datasets ⇒ Object
9 10 11 |
# File 'lib/osctl/image/container_config.rb', line 9 def datasets [dataset] + dataset.descendants end |
#dump_config ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/osctl/image/container_config.rb', line 17 def dump_config ret = { 'distribution' => distribution, 'version' => version, 'arch' => arch } ret.update(@overrides) if @overrides ret end |
#group ⇒ Object
7 |
# File 'lib/osctl/image/container_config.rb', line 7 def group = nil |
#id ⇒ Object
5 |
# File 'lib/osctl/image/container_config.rb', line 5 def id = nil |
#override_with(opts) ⇒ Object
13 14 15 |
# File 'lib/osctl/image/container_config.rb', line 13 def override_with(opts) @overrides = opts end |
#user ⇒ Object
6 |
# File 'lib/osctl/image/container_config.rb', line 6 def user = nil |