Class: Inspec::Resources::Cassandra

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCassandra

Returns a new instance of Cassandra.



11
12
13
14
15
16
17
18
# File 'lib/inspec/resources/cassandra.rb', line 11

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.



9
10
11
# File 'lib/inspec/resources/cassandra.rb', line 9

def conf_path
  @conf_path
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/inspec/resources/cassandra.rb', line 20

def to_s
  "CassandraDB"
end