Sha256: c524249da2bdd56d09a5f228792bca46e22325ad235bdb5f7a0c52880fdf80f0

Contents?: true

Size: 390 Bytes

Versions: 1

Compression:

Stored size: 390 Bytes

Contents

require 'cocaine'

module Stevenson
  module OutputFilter
    class Jekyll < Base

      def output
        # Jekyll Build the Directory
        command.run(source: directory)

        # Return output directory
        File.join(directory, '_site')
      end

      private

      def command
        Cocaine::CommandLine.new("jekyll", "build --source :source")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stevenson-2.3.2 lib/stevenson/output_filters/jekyll.rb