Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

sakuro/crontab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

A crontab(5) parser.

Usage

crontab = Crontab.parse(src)

from_date = Date.parse('2009-10-10')
to_date = Date.parse('2009-10-20')

crontab.entries.each do |e|
  puts e.command
  e.schedule.from(from_date).until(to_date) do |timing|
    puts timing
  end
end

About

A crontab(5) entry parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages