96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
# File 'lib/inspec/resources/file.rb', line 96
def mounted?(expected_options = nil, identical = false)
mounted = file.mounted
return file.mounted? if expected_options.nil?
Inspec.deprecate(:file_resource_be_mounted_matchers, "The file resource `be_mounted.with` and `be_mounted.only_with` matchers are deprecated. Please use the `mount` resource instead")
return nil unless inspec.os.linux?
@mount_options ||= parse_mount_options(mounted.stdout, true)
if identical
@mount_options == expected_options
else
@mount_options.contains(expected_options)
end
end
|