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.2.1 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.2.0 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.1.4 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.1.2 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.1.1 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.1.0 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.64 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.63 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.62 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.61 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.60 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.59 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.58 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.57 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.56 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.55 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.54 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.53 lib/octopress-ink/jekyll/static_file_content.rb
octopress-ink-1.0.0.rc.52 lib/octopress-ink/jekyll/static_file_content.rb