Sha256: d2db9904c770131330c464d5d7c66d47f4296dffd1f9c6e43a4c210665c73802
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
## initialize Load schedule text written in Ruby DSL. check do |ruby| Detroit::Schedule.new(ruby) end ok <<-HERE Email :myself do |s| s.mailto = 'transfire@gmail.com' s.active = true end Syntax do |s| s.exclude = ['lib/plugins'] s.active = false end HERE Load schedule from a file written in Ruby DSL. check do |file| path = File.join(root_dir, file) Detroit::Schedule.new(File.new(path)) end ok 'samples/example_schedule.rb' Load schedule text written in YAML" check do |yaml| Detroit::Schedule.new(yaml) end ok <<-HERE --- myself: service: email mailto : transfire@gmail.com active : true end syntax: exclude: [lib/plugins] active : false HERE Load schedule from a file written in YAML. check do |file| path = File.join(root_dir, file) Detroit::Schedule.new(File.new(path)) end ok 'samples/example_schedule.yml'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detroit-0.2.0 | qed/01_assembly/02_initialize.md |
detroit-0.1.0 | qed/01_schedule/02_initialize.md |