lib/octopress-ink/assets/file.rb in octopress-ink-1.0.0.alpha.44 vs lib/octopress-ink/assets/file.rb in octopress-ink-1.0.0.alpha.45

- old
+ new

@@ -15,21 +15,23 @@ @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 Plugins.site.source, Plugins.custom_dir, plugin.slug, base - end - - def add - if !exists?(local_plugin_path) && !Ink.config['docs_mode'] - Plugins.site.static_files << StaticFile.new(File.join(source_dir, file), destination) - end + File.join Ink.site.source, Plugins.custom_dir, plugin.slug, base end end end end end