Class: Resources::Generic

Inherits:
Object
  • Object
show all
Includes:
EasyType, OraUtils::OracleAccess
Defined in:
lib/orabase/resources/generic.rb

Direct Known Subclasses

OraAsmDiskgroup, OraAsmVolume

Constant Summary

Constants included from OraUtils::OracleAccess

OraUtils::OracleAccess::OS_USER_NAME

Class Method Summary collapse

Instance Method Summary collapse

Methods included from OraUtils::OracleAccess

#add_sid_to, #execute_on_sid, included, #sid_from, #sid_from_resource, #sql, #sql_on, #sql_on_all_asm_sids, #sql_on_all_database_sids, #sql_on_all_sids, #sql_on_sids, #timeout_specified

Constructor Details

#initializeGeneric

Returns a new instance of Generic.



11
12
13
14
# File 'lib/orabase/resources/generic.rb', line 11

def initialize
  @resource_type = host_class
  @oratab        = OraUtils::OraTab.new
end

Class Method Details

.indexObject



20
21
22
# File 'lib/orabase/resources/generic.rb', line 20

def self.index
  self.new.index
end

.raw_resourcesObject



16
17
18
# File 'lib/orabase/resources/generic.rb', line 16

def self.raw_resources
  self.new.raw_resources
end

Instance Method Details

#indexObject



24
25
26
27
28
# File 'lib/orabase/resources/generic.rb', line 24

def index
  raw_resources.collect do |raw_resource|
    map_raw_to_resource(raw_resource)
  end
end