Class: Inspec::Resources::Cassandra
- Inherits:
-
Object
- Object
- Inspec::Resources::Cassandra
- Defined in:
- lib/inspec/resources/cassandra.rb
Instance Attribute Summary collapse
-
#conf_path ⇒ Object
readonly
Returns the value of attribute conf_path.
Instance Method Summary collapse
-
#initialize ⇒ Cassandra
constructor
A new instance of Cassandra.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Cassandra
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_path ⇒ Object (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_s ⇒ Object
20 21 22 |
# File 'lib/inspec/resources/cassandra.rb', line 20 def to_s "CassandraDB" end |