Class: ForemanWds::WdsInstallImage

Inherits:
WdsImage
  • Object
show all
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

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

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

#compressionObject

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_filesObject

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

#formatObject

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_groupObject

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_styleObject

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

#securityObject

Returns the value of attribute security.



2
3
4
# File 'app/lib/foreman_wds/wds_install_image.rb', line 2

def security
  @security
end

#stagedObject

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_presentObject

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

#reloadObject



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