# These are files which need to be in added to the root of the site directory # Use root assets for files like robots.text or favicon.ico module Octopress module Ink module Assets class FileAsset < Asset def initialize(plugin, base, file) @root = plugin.assets_path @plugin = plugin @base = base @filename = file @dir = File.dirname(file) @file = File.basename(file) @exists = {} file_check end def add if !exists?(local_plugin_path) && !Ink.config['docs_mode'] Plugins.static_files << StaticFile.new(File.join(source_dir, file), destination) end end private def filename @filename end def user_dir File.join Ink.site.source, Plugins.custom_dir, plugin.slug, base end end end end end