Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #144 from andersjanmyr/hack_to_get_static_to_work_…

…again

Get the logger instance var from showoff instance
  • Loading branch information...
commit 3a8b3642282ae16ead449d464e656d505e215ea3 2 parents 3a837e5 + 2eeee31
@goncalossilva goncalossilva authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/showoff.rb
View
3  lib/showoff.rb
@@ -404,6 +404,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")
@@ -449,7 +450,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))
Please sign in to comment.
Something went wrong with that request. Please try again.