Sha256: e8b6feda6b1ad115847aa9a11aa8559758eff74837584be87a91cc4b63ef1039
Contents?: true
Size: 743 Bytes
Versions: 3
Compression:
Stored size: 743 Bytes
Contents
module Octopress module Ink module LocalAssets class Asset < Ink::Assets::Asset def initialize(plugin, file) @plugin = plugin @file = file end def info message = filename.ljust(35) message += "from: #{base}" " - #{message}" end def filename File.basename(path) end def base file.relative_path.sub(filename,'').sub(/^\/(.+)\/$/,'\1') end def destination File.join(base, filename) end def path Pathname.new file.path end # Copy is unncessary with local assets # def copy(target_dir); end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems