Class: Inspec::Resources::Mongodb
- Inherits:
-
Object
- Object
- Inspec::Resources::Mongodb
- Defined in:
- lib/inspec/resources/mongodb.rb
Instance Attribute Summary collapse
-
#conf_path ⇒ Object
readonly
Returns the value of attribute conf_path.
Instance Method Summary collapse
-
#initialize ⇒ Mongodb
constructor
A new instance of Mongodb.
- #resource_id ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Mongodb
Returns a new instance of Mongodb.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/inspec/resources/mongodb.rb', line 11 def initialize case inspec.os[:family] when "debian", "fedora", "redhat", "linux", "suse" init_linux when "darwin" init_macos when "windows" init_windows end end |
Instance Attribute Details
#conf_path ⇒ Object (readonly)
Returns the value of attribute conf_path.
9 10 11 |
# File 'lib/inspec/resources/mongodb.rb', line 9 def conf_path @conf_path end |
Instance Method Details
#resource_id ⇒ Object
22 23 24 |
# File 'lib/inspec/resources/mongodb.rb', line 22 def resource_id @conf_path end |
#to_s ⇒ Object
26 27 28 |
# File 'lib/inspec/resources/mongodb.rb', line 26 def to_s "MongoDB" end |