Sha256: 70eff0b510e067b90cf775f48acfebeb5ce76c76fcf438bf641db032adacf52c

Contents?: true

Size: 233 Bytes

Versions: 11

Compression:

Stored size: 233 Bytes

Contents

RSpec::Matchers.define :be_running do
  match do |actual|
    ret = ssh_exec(commands.check_running(actual))
    if ret[:exit_code] == 1
      ret = ssh_exec(commands.check_process(actual))
    end
    ret[:exit_code] == 0
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
serverspec-0.1.3 lib/serverspec/matchers/be_running.rb
serverspec-0.1.2 lib/serverspec/matchers/be_running.rb
serverspec-0.1.1 lib/serverspec/matchers/be_running.rb
serverspec-0.1.0 lib/serverspec/matchers/be_running.rb
serverspec-0.0.19 lib/serverspec/matchers/be_running.rb
serverspec-0.0.18 lib/serverspec/matchers/be_running.rb
serverspec-0.0.17 lib/serverspec/matchers/be_running.rb
serverspec-0.0.16 lib/serverspec/matchers/be_running.rb
serverspec-0.0.15 lib/serverspec/matchers/be_running.rb
serverspec-0.0.14 lib/serverspec/matchers/be_running.rb
serverspec-0.0.13 lib/serverspec/matchers/be_running.rb