Sha256: 4176191b13aebc6a3ef23a10ec3bec2eb8987ae1b2aa5f2e718159e10f8116f9

Contents?: true

Size: 159 Bytes

Versions: 8

Compression:

Stored size: 159 Bytes

Contents

RSpec::Matchers.define :return_exit_status do |status|
  match do |command|
    ret = backend.do_check(command)
    ret[:exit_status].to_i == status
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
serverspec-0.2.19 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.18 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.17 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.16 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.15 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.14 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.13 lib/serverspec/matchers/return_exit_status.rb
serverspec-0.2.12 lib/serverspec/matchers/return_exit_status.rb