Sha256: 7b111415bb34af6d625de5c8fba1d53540792d4da28b44e8e13307f33ddfb84c

Contents?: true

Size: 285 Bytes

Versions: 83

Compression:

Stored size: 285 Bytes

Contents

module Octopress
  module Ink
    class StaticFileContent < StaticFile
      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
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
octopress-ink-1.0.0.rc.10 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.9 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.8 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.7 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.6 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.5 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.3 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.2 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.1 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.45 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.44 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.43 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.42 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.41 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.40 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.39 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.38 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.37 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.36 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.alpha.35 lib/octopress-ink/jekyll/static_file_content.rb