mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
add deprecation warning for serverspec users
This commit is contained in:
parent
a72ba94f10
commit
e1d7d30919
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ module Inspec::Resources
|
|||
# return if no additional parameters have been provided
|
||||
return file.mounted? if expected_options.nil?
|
||||
|
||||
# deprecation warning, this functionality will be removed in future version
|
||||
warn "[DEPRECATION] `be_mounted.with and be_mounted.only_with` are deprecated. Please use `mount('#{path}')` instead."
|
||||
|
||||
# we cannot read mount data on non-Linux systems
|
||||
return nil if !inspec.os.linux?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue