Class: Inspec::Resources::Oracle

Inherits:
Object
  • Object
show all
Defined in:
lib/inspec/resources/oracle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOracle

Returns a new instance of Oracle.



13
14
15
16
17
18
19
20
# File 'lib/inspec/resources/oracle.rb', line 13

def initialize
  case inspec.os[:family]
  when "debian", "redhat", "linux", "suse"
    determine_conf_dir_and_path_in_linux
  when "windows"
    determine_conf_dir_and_path_in_windows
  end
end

Instance Attribute Details

#conf_pathObject (readonly)

Returns the value of attribute conf_path.



11
12
13
# File 'lib/inspec/resources/oracle.rb', line 11

def conf_path
  @conf_path
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/inspec/resources/oracle.rb', line 22

def to_s
  "OracleDB"
end