Class: System
- Inherits:
-
Object
- Object
- System
- Defined in:
- lib/satops/operator.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Class Method Summary collapse
Instance Method Summary collapse
-
#create(sat) ⇒ Object
System profiles must be registered and cannot be created.
-
#initialize(system) ⇒ System
constructor
A new instance of System.
- #update(sat) ⇒ Object
Constructor Details
#initialize(system) ⇒ System
Returns a new instance of System.
979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 |
# File 'lib/satops/operator.rb', line 979 def initialize(system) @id=system['id'] @profile_name=system['profile_name'] @base_entitlement=system['base_entitlement'] @addon_entitlement=system[''] @auto_update=system['auto_update'] @release=system['release'] @address1=system['address1'] @address2=system['address2'] @city=system['city'] @state=system['state'] @country=system['country'] @building=system['building'] @room=system['room'] @rack=system['rack'] @description=system['description'] @hostname=system['hostname'] @last_boot=system['last_boot'] @osa_satus=system['osa_status'] @lock_status=system['lock_status'] @connection_path=system['connection_path'] @cpu=system['cpu'] @custom_values=system['custom_values='] @devices=system['devices'] @dmi=system['dmi'] @entitlements=system['entitlements'] @event_history=system['event_history'] @memory=system['memory'] @name=system['name'] @network=system['network'] @network_devices=system['network_devices'] @registration_date=system['registration_date'] @running_kernel=system['running_kernel'] @subscribed_base_channel=system['subscribed_base_channel'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
957 958 959 |
# File 'lib/satops/operator.rb', line 957 def id @id end |
Class Method Details
.reader(sat, id) ⇒ Object
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 |
# File 'lib/satops/operator.rb', line 959 def self.reader(sat, id) system={} system.merge!(sat.system.getDetails(id)) system.merge!({'connection_path'=>sat.system.getConnectionPath(id)}) system.merge!({'cpu'=>sat.system.getCpu(id)}) system.merge!({'custom_values'=>sat.system.getCustomValues(id)}) system.merge!({'devices'=>sat.system.getDevices(id)}) system.merge!({'dmi'=>sat.system.getDmi(id)}) system.merge!({'entitlements'=>sat.system.getEntitlements(id)}) system.merge!({'event_history'=>sat.system.getEventHistory(id)}) system.merge!({'memory'=>sat.system.getMemory(id)}) system.merge!({'name'=>sat.system.getName(id)}) system.merge!({'network'=>sat.system.getNetwork(id)}) system.merge!({'network_devices'=>sat.system.getNetworkDevices(id)}) system.merge!({'registration_date'=>sat.system.getRegistrationDate(id)}) system.merge!({'running_kernel'=>sat.system.getRunningKernel(id)}) system.merge!({'subscribed_base_channel'=>sat.system.getSubscribedBaseChannel(id)}) system end |
Instance Method Details
#create(sat) ⇒ Object
System profiles must be registered and cannot be created
1016 1017 |
# File 'lib/satops/operator.rb', line 1016 def create(sat) end |
#update(sat) ⇒ Object
1019 1020 |
# File 'lib/satops/operator.rb', line 1019 def update(sat) end |