Sha256: eebd57ed1d9bf3d9d0376c47b842dd4b8ba29852886032273013a86494e90c01

Contents?: true

Size: 881 Bytes

Versions: 3

Compression:

Stored size: 881 Bytes

Contents

# encoding: utf-8

module Slideshow


## note: just extents version in slideshow-models


class Opts

  def merge_gli_options!( options={} )
    @header_level = 1   if options[:h1] == true
    @header_level = 2   if options[:h2] == true
    
    @slide     = true   if options[:slide] == true
    @takahashi = true   if options[:slide] == true
    
    @verbose = true     if options[:verbose] == true
    
    @fetch_all = true   if options[:all] == true
    
    @config_path = options[:config]    if options[:config].present?
    @output_path = options[:output]    if options[:output].present?
    
    @manifest       =   options[:template]  if options[:template].present?
    
    ## NB: will use :template option too
    @quick_manifest =   options[:template]  if options[:template].present?
  end

end # class Opts

end # module Slideshow

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slideshow-3.1.0 lib/slideshow/cli/opts.rb
slideshow-3.0.1 lib/slideshow/cli/opts.rb
slideshow-3.0.0 lib/slideshow/cli/opts.rb