Class: Mongodb
- Inherits:
-
Object
- Object
- Mongodb
- Defined in:
- lib/inspec-mongodb-resources/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.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/inspec-mongodb-resources/resources/mongodb.rb', line 10 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.
8 9 10 |
# File 'lib/inspec-mongodb-resources/resources/mongodb.rb', line 8 def conf_path @conf_path end |
Instance Method Details
#resource_id ⇒ Object
21 22 23 |
# File 'lib/inspec-mongodb-resources/resources/mongodb.rb', line 21 def resource_id @conf_path end |
#to_s ⇒ Object
25 26 27 |
# File 'lib/inspec-mongodb-resources/resources/mongodb.rb', line 25 def to_s "MongoDB" end |