Class: Serverspec::Type::Cron

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/cron.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect, #to_ary

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#has_entry?(user, entry) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/serverspec/type/cron.rb', line 3

def has_entry?(user, entry)
  @runner.check_cron_has_entry(user, entry)
end

#tableObject



7
8
9
# File 'lib/serverspec/type/cron.rb', line 7

def table
  @runner.get_cron_table.stdout
end

#to_sObject



11
12
13
# File 'lib/serverspec/type/cron.rb', line 11

def to_s
  'Cron'
end