class RHN::KickstartFilepreservation

Public Class Methods

new(sat) click to toggle source
Calls superclass method RHN::Operation::new
# File lib/satops/rhsat.rb, line 310
def initialize(sat)
  super(sat)
  define 'kickstart.filepreservation.create'
  define 'kickstart.filepreservation.delete'
  define 'kickstart.filepreservation.getDetails'
  define 'kickstart.filepreservation.listAllFilePreservations', :list
end

Public Instance Methods

exist?(name) click to toggle source
# File lib/satops/rhsat.rb, line 318
def exist?(name)
  if get(name)
    return true
  else
    return false
  end
end
get(name) click to toggle source
# File lib/satops/rhsat.rb, line 326
def get(name)
  action('kickstart.filepreservation.getDetails', name)
rescue RuntimeError # Workaround for bug 'cause empty
  return nil
end