Sha256: fbe7023ada87e70ccabe34f87dff31e52885d4fbfba1caf754ef6ee7a4ca57f5

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
serverspec-0.1.6 lib/serverspec/matchers/be_running.rb
serverspec-0.1.5 lib/serverspec/matchers/be_running.rb
serverspec-0.1.4 lib/serverspec/matchers/be_running.rb