lib/slideshow.rb in slideshow-3.1.0 vs lib/slideshow.rb in slideshow-4.0.0
- old
+ new
@@ -3,11 +3,10 @@
$RUBYLIBS_DEBUG = true
require 'slideshow/models'
-require 'slideshow/templates' ## for now add builtin templates (remove later? why? why not?)
## todo/fix: check slideshow-models - remove Env.slideshowopt here or in models?
#
#class Env
# def self.slideshowopt
@@ -31,18 +30,18 @@
module Slideshow
=begin
def self.main_old
-
+
# allow env variable to set RUBYOPT-style default command line options
# e.g. -o slides -t <your_template_manifest_here>
slideshowopt = Env.slideshowopt
-
+
args = []
args += slideshowopt.split if slideshowopt
args += ARGV.dup
-
+
Runner.new.run(args)
end
=end
def self.main