Sha256: 2fc7761bb1b4151ac6e9dead2daee95aa04ddee4a2fe9d50535bf3271c978e2b

Contents?: true

Size: 193 Bytes

Versions: 10

Compression:

Stored size: 193 Bytes

Contents

RSpec::Matchers.define :contain do |expected|
  match do |actual|
    ret = ssh_exec(RSpec.configuration.host, commands.check_file_contain(actual, expected))
    ret[:exit_code] == 0
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
serverspec-0.0.12 lib/serverspec/matchers/contain.rb
serverspec-0.0.11 lib/serverspec/matchers/contain.rb
serverspec-0.0.10 lib/serverspec/matchers/contain.rb
serverspec-0.0.9 lib/serverspec/matchers/contain.rb
serverspec-0.0.8 lib/serverspec/matchers/contain.rb
serverspec-0.0.7 lib/serverspec/matchers/contain.rb
serverspec-0.0.6 lib/serverspec/matchers/contain.rb
serverspec-0.0.5 lib/serverspec/matchers/contain.rb
serverspec-0.0.4 lib/serverspec/matchers/contain.rb
serverspec-0.0.3 lib/serverspec/matchers/contain.rb