lib/site_hook/sender.rb in site_hook-0.6.4 vs lib/site_hook/sender.rb in site_hook-0.6.7

- old
+ new

@@ -23,34 +23,35 @@ def do_pull fakelog = SiteHook::HookLogger::FakeLog.new reallog = SiteHook::HookLogger::GitLog.new(SiteHook.log_levels['git']).log jekyll_source = Jekyll.instance_variable_get('@jekyll_source') - build_dest = Jekyll.instance_variable_get('@build_dest') - g = Git.open(jekyll_source, :log => fakelog) + # build_dest = Jekyll.instance_variable_get('@build_dest') + g = Git.open(jekyll_source, log: fakelog) g.pull fakelog.entries.each do |level, entries| - entries.each { |entry| reallog.send("#{level}", entry) } + entries.each { |entry| reallog.send(level.to_s, entry) } end end def do_build jekyll_source = Jekyll.instance_variable_get('@jekyll_source') build_dest = Jekyll.instance_variable_get('@build_dest') log = Jekyll.instance_variable_get('@log') Open3.popen2e({'BUNDLE_GEMFILE' => Pathname(jekyll_source).join('Gemfile').to_path}, "bundle exec jekyll build --source #{Pathname(jekyll_source).realdirpath.to_path} --destination #{Pathname(build_dest).to_path}") { |in_io, outerr_io, thr| - pid = thr.pid + # pid = thr.pid outerr = outerr_io.read.lines outerr.each do |line| line = Paint.unpaint(line) line.squish! # Configuration file: /home/ken/sites/iotaspencer.me/_config.yml # Source: /home/ken/sites/iotaspencer.me # Destination: /var/www/iotaspencer.me # Incremental build: disabled. Enable with --incremental # Generating... - # GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data. + # GitHub Metadata: No GitHub API authentication could be found. + # Some fields may be missing or have incorrect data. # done in 6.847 seconds. # Auto-regeneration: disabled. Use --watch to enable. case when line =~ /done in .*/ log.info(line)