Method: Specinfra::Command::Base::File.check_contains_with_fixed_strings

Defined in:
lib/specinfra/command/base/file.rb

.check_contains_with_fixed_strings(file, expected_pattern) ⇒ Object

[View source]

83
84
85
# File 'lib/specinfra/command/base/file.rb', line 83

def check_contains_with_fixed_strings(file, expected_pattern)
  "grep -qFs -- #{escape(expected_pattern)} #{escape(file)}"
end