Class: ForemanWds::WdsInstallImage
- Defined in:
- app/lib/foreman_wds/wds_install_image.rb
Constant Summary
Constants inherited from WdsImage
ForemanWds::WdsImage::WDS_ARCH_NAMES, ForemanWds::WdsImage::WDS_IMAGE_ARCHES, ForemanWds::WdsImage::WDS_PROCESSOR_NAMES
Instance Attribute Summary collapse
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#dependent_files ⇒ Object
Returns the value of attribute dependent_files.
-
#format ⇒ Object
Returns the value of attribute format.
-
#image_group ⇒ Object
Returns the value of attribute image_group.
-
#partition_style ⇒ Object
Returns the value of attribute partition_style.
-
#security ⇒ Object
Returns the value of attribute security.
-
#staged ⇒ Object
Returns the value of attribute staged.
-
#unattend_file_present ⇒ Object
Returns the value of attribute unattend_file_present.
Attributes inherited from WdsImage
#architecture, #creation_time, #description, #enabled, #file_name, #id, #last_modification_time, #name, #product_family, #product_name, #version, #wds_server
Instance Method Summary collapse
-
#initialize(json = {}) ⇒ WdsInstallImage
constructor
A new instance of WdsInstallImage.
- #reload ⇒ Object
Methods inherited from WdsImage
#architecture_name, #inspect, #marshal_dump, #marshal_load, #matches_architecture?, #type_name
Constructor Details
#initialize(json = {}) ⇒ WdsInstallImage
Returns a new instance of WdsInstallImage.
5 6 7 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 5 def initialize(json = {}) super json end |
Instance Attribute Details
#compression ⇒ Object
Returns the value of attribute compression.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def compression @compression end |
#dependent_files ⇒ Object
Returns the value of attribute dependent_files.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def dependent_files @dependent_files end |
#format ⇒ Object
Returns the value of attribute format.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def format @format end |
#image_group ⇒ Object
Returns the value of attribute image_group.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def image_group @image_group end |
#partition_style ⇒ Object
Returns the value of attribute partition_style.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def partition_style @partition_style end |
#security ⇒ Object
Returns the value of attribute security.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def security @security end |
#staged ⇒ Object
Returns the value of attribute staged.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def staged @staged end |
#unattend_file_present ⇒ Object
Returns the value of attribute unattend_file_present.
2 3 4 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2 def unattend_file_present @unattend_file_present end |
Instance Method Details
#reload ⇒ Object
9 10 11 12 13 |
# File 'app/lib/foreman_wds/wds_install_image.rb', line 9 def reload return false if wds_server.nil? @json = wds_server.install_image(name) load! end |