diff options
Diffstat (limited to 'lib/puppet')
| -rwxr-xr-x | lib/puppet/type/cron.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/puppet/type/cron.rb b/lib/puppet/type/cron.rb index ea34f4629..917a6ffb1 100755 --- a/lib/puppet/type/cron.rb +++ b/lib/puppet/type/cron.rb @@ -256,6 +256,14 @@ module Puppet class << self attr_accessor :filetype + + def cronobj(name) + if defined? @tabs + return @tabs[name] + else + return nil + end + end end attr_accessor :uid @@ -353,6 +361,10 @@ module Puppet when /^#/: # add other comments to the list as they are @instances[user] << line + when /^\s*(\w+)\s*=\s*(.+)\s*$/: + # Match env settings. For now, just chunk them in there, + # but eventually we'll want to manage them in the model somehow. + @instances[user] << line else if match = /^(\S+) (\S+) (\S+) (\S+) (\S+) (.+)$/.match(line) fields().zip(match.captures).each { |param, value| |
