lib/octopress-ink/jekyll/static_file.rb in octopress-ink-1.0.0.alpha.31 vs lib/octopress-ink/jekyll/static_file.rb in octopress-ink-1.0.0.alpha.32

- old
+ new

@@ -1,26 +1,28 @@ module Octopress - class StaticFile - def initialize(source, dest) - @source = source - @dest = dest - end + module Ink + class StaticFile + def initialize(source, dest) + @source = source + @dest = dest + end - def destination(dest) - File.join(dest, @dest) - end + def destination(dest) + File.join(dest, @dest) + end - def path - @source - end + def path + @source + end - def write(dest) - dest_path = destination(dest) + def write(dest) + dest_path = destination(dest) - FileUtils.mkdir_p(File.dirname(dest_path)) - FileUtils.cp(@source, dest_path) + FileUtils.mkdir_p(File.dirname(dest_path)) + FileUtils.cp(@source, dest_path) - true + true + end end end end