Sha256: 290cf753e824d0b8304691d2bbdc9a10702b975517fbabdb4269ff0b55e71239

Contents?: true

Size: 265 Bytes

Versions: 4

Compression:

Stored size: 265 Bytes

Contents

RSpec::Matchers.define :have_cron_entry do |entry|
  match do |actual|
    @user ||= 'root'
    ret = ssh_exec(RSpec.configuration.host, commands.check_cron_entry(@user, entry))
    ret[:exit_code] == 0
  end
  chain :with_user do |user|
    @user = user
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serverspec-0.0.13 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.12 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.11 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.10 lib/serverspec/matchers/have_cron_entry.rb