Class: Inspec::Resources::Mongodb

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMongodb

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_pathObject (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_idObject



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

def resource_id
  @conf_path
end

#to_sObject



26
27
28
# File 'lib/inspec/resources/mongodb.rb', line 26

def to_s
  "MongoDB"
end