Sha256: fa34d018004b6bc1d0b8f28cc572c926d347c739710965215a977b2d9849f974

Contents?: true

Size: 239 Bytes

Versions: 13

Compression:

Stored size: 239 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
serverspec-0.1.6 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.1.5 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.1.4 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.1.3 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.1.2 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.1.1 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.1.0 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.19 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.18 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.17 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.16 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.15 lib/serverspec/matchers/have_cron_entry.rb
serverspec-0.0.14 lib/serverspec/matchers/have_cron_entry.rb