Method: Inspec::Resources::Mount#initialize

Defined in:
lib/resources/mount.rb

#initialize(path) ⇒ Mount

Returns a new instance of Mount.



22
23
24
25
26
27
# File 'lib/resources/mount.rb', line 22

def initialize(path)
  @path = path
  @mount_manager = mount_manager_for_os
  return skip_resource 'The `mount` resource is not supported on your OS yet.' if @mount_manager.nil?
  @file = inspec.backend.file(@path)
end