class Octopress::Ink::SiteHook

Public Instance Methods

merge_payload(payload, site) click to toggle source
# File lib/octopress-ink/jekyll/hooks.rb, line 47
def merge_payload(payload, site)
  Ink.payload
end
post_read(site) click to toggle source
# File lib/octopress-ink/jekyll/hooks.rb, line 41
def post_read(site)
  Octopress.site = site
  Ink::Plugins.register
  Ink::Plugins.add_files
end
post_write(site) click to toggle source
# File lib/octopress-ink/jekyll/hooks.rb, line 51
def post_write(site)
  Octopress::Ink::Plugins.static_files.each do |f| 
    f.write(site.dest)
  end

  Octopress::Ink::Cache.write
  Octopress::Ink::Cache.clean
end
reset(site) click to toggle source
# File lib/octopress-ink/jekyll/hooks.rb, line 34
def reset(site)
  Ink.watch_assets(site)
  if Plugins.registered
    Plugins.reset
  end
end