require 'rdvd-slideshow/slideshow_task' require 'rprogram/program' module RDvdSlideshow class Slideshow < RProgram::Program name_program "dvd-slideshow" def initialize(path) super(path) end # # Launches the building of the slideshow. # Options and/or block can be passed to configure the slideshow. # Example: # Slideshow.build(:output_dir=>"output",:input_file=>"input.txt") # # or with a block: # Slideshow.build do |show| # show.output_dir = "output" # show.write_input do |input| # input.image "toto.jpg", "0.5" # end # end # def self.build(options={},&block) self.find.build(options,&block) end # # Instance method for building slideshow # def build(options={},&block) run_task(SlideshowTask.new(options,&block)) end end end