Method: Specinfra::Command::Base::File.check_contains_with_regexp
- Defined in:
- lib/specinfra/command/base/file.rb
.check_contains_with_regexp(file, expected_pattern) ⇒ Object
79 80 81 |
# File 'lib/specinfra/command/base/file.rb', line 79 def check_contains_with_regexp(file, expected_pattern) "grep -qs -- #{escape(expected_pattern)} #{escape(file)}" end |