lib/slideshow/cli/commands/gen_templates.rb in slideshow-1.2.4 vs lib/slideshow/cli/commands/gen_templates.rb in slideshow-1.2.5
- old
+ new
@@ -1,18 +1,19 @@
module Slideshow
class GenTemplates
+ include LogUtils::Logging
+
### fix: remove opts, use config (wrapped!!)
- def initialize( logger, opts, config )
- @logger = logger
+ def initialize( opts, config )
@opts = opts
@config = config
end
- attr_reader :logger, :opts, :config
+ attr_reader :opts, :config
def run
manifest_name = opts.manifest
manifest_name = manifest_name.downcase.gsub( '.txt', '' ) # remove (optional) .txt ending
logger.debug "manifest=#{manifest_name}"
\ No newline at end of file