Permalink
Browse files

Get the logger instance var from showoff instance

  • Loading branch information...
1 parent 335e142 commit 2eeee31d7c5718bd43ca96d1af23a57b61b2e7bb @andersjanmyr committed Oct 22, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/showoff.rb
View
@@ -406,6 +406,7 @@ def self.do_static(what)
end
name = showoff.instance_variable_get(:@pres_name)
path = showoff.instance_variable_get(:@root_path)
+ logger = showoff.instance_variable_get(:@logger)
data = showoff.send(what, true)
if data.is_a?(File)
FileUtils.cp(data.path, "#{name}.pdf")
@@ -451,7 +452,7 @@ def self.do_static(what)
File.open(css_path) do |file|
data = file.read
data.scan(/url\((.*)\)/).flatten.each do |path|
- @logger.debug path
+ logger.debug path
dir = File.dirname(path)
FileUtils.makedirs(File.join(file_dir, dir))
FileUtils.copy(File.join(pres_dir, path), File.join(file_dir, path))

0 comments on commit 2eeee31

Please sign in to comment.