Module: KeynoteDriver

Extended by:
KeynoteDriver
Included in:
KeynoteDriver
Defined in:
lib/keynote_driver.rb,
lib/keynote_driver/version.rb,
lib/keynote_driver/time_code.rb,
lib/keynote_driver/presentation.rb

Defined Under Namespace

Classes: Presentation, PresentationException, TimeCode, TimeCodeException

Constant Summary collapse

VERSION =
"0.0.3"

Instance Method Summary collapse

Instance Method Details

#launch!(pres_path, timecode_path, delay) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/keynote_driver.rb', line 10

def launch!(pres_path, timecode_path, delay)
  begin
    delays = TimeCode.new(timecode_path, delay).deltas
    pres = Presentation.new(pres_path)
    pres.exec(delays)
  rescue TimeCodeException => ex
    puts "Time code file: #{ex}"
  rescue PresentationException => ex
    puts "Presentation: #{ex}"
  end
end