~bkerensa/ubuntu/raring/puppet/new-upstream-release

« back to all changes in this revision

Viewing changes to lib/puppet/type/cron.rb

  • Committer: Benjamin Kerensa
  • Date: 2012-11-21 23:50:52 UTC
  • mfrom: (1.1.30)
  • Revision ID: bkerensa@ubuntu.com-20121121235052-ah7nzabp77sh69gb
New Upstream Release

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
require 'puppet/util/filetype'
4
4
 
5
5
Puppet::Type.newtype(:cron) do
6
 
  @doc = <<-EOT
 
6
  @doc = <<-'EOT'
7
7
    Installs and manages cron jobs.  Every cron resource requires a command
8
8
    and user attribute, as well as at least one periodic attribute (hour,
9
9
    minute, month, monthday, weekday, or special).  While the name of the cron
389
389
  attr_accessor :uid
390
390
 
391
391
  def value(name)
392
 
    name = symbolize(name)
 
392
    name = name.intern
393
393
    ret = nil
394
394
    if obj = @parameters[name]
395
395
      ret = obj.should