class Octopress::Ink::StaticFileContent

Public Instance Methods

write(dest) click to toggle source
# File lib/octopress-ink/jekyll/static_file_content.rb, line 4
def write(dest)
  dest_path = destination(dest)

  FileUtils.mkdir_p(File.dirname(dest_path))
  File.open(dest_path, 'w') { |f| f.write(@source) }

  true
end