Class: KickstartKeysSet

Inherits:
OperationSet show all
Defined in:
lib/satops/operator.rb

Instance Attribute Summary

Attributes inherited from OperationSet

#list

Instance Method Summary collapse

Methods inherited from OperationSet

#-, #delete_all, #extra, #fetch, #initialize

Constructor Details

This class inherits a constructor from OperationSet

Instance Method Details

#fetch_allObject



733
734
735
736
737
738
739
# File 'lib/satops/operator.rb', line 733

def fetch_all
  ks_keys=[]
  get_all.each do |ks|
    ks_keys << KickstartKey.new(ks)
  end
  ks_keys
end

#get_allObject



741
742
743
744
745
746
747
748
749
750
# File 'lib/satops/operator.rb', line 741

def get_all
  # Fetch only kickstart keys matching key_type option
  key_type=KickstartKeys.key_type
  return [] unless key_type
  ksdetails=[]
  @sat.kickstartKeys.listAllKeys.each do |ks_key|
    ksdetails.push(@sat.kickstartKeys.getDetails(ks_key['description'])) if ks_key['type'] == key_type
  end
  ksdetails
end

#include?(arg) ⇒ Boolean

Returns:

  • (Boolean)


752
753
754
# File 'lib/satops/operator.rb', line 752

def include?(arg)
  self.include_description?(arg)
end