Class: ForemanWds::WdsBootImage

Inherits:
WdsImage
  • Object
show all
Defined in:
app/lib/foreman_wds/wds_boot_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

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 = {}) ⇒ WdsBootImage

Returns a new instance of WdsBootImage.



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

def initialize(json = {})
  super json
end

Instance Method Details

#reloadObject



6
7
8
9
10
# File 'app/lib/foreman_wds/wds_boot_image.rb', line 6

def reload
  return false if wds_server.nil?
  @json = wds_server.boot_image(name)
  load!
end