Sha256: 8ffe9710789d133a85527da9d7605e810b9257628a7928f076963c3aa4a2a19c

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

require "middleman-core/cli"

module Middleman
  module Pipeline

    # A template that generates a blog-specific config.rb
    # and a set of example templates for index, layout, tags, and calendar.
    class Assetfile < ::Thor
      include Thor::Actions
      check_unknown_options!
      
      namespace :assetfile
    
      def self.source_root
        File.join(File.dirname(__FILE__), 'template')
      end
  
      desc "assetfile", "Create an Assetfile for Rake::Pipeline"
      
      def assetfile
        template "Assetfile.tt", File.join(ENV["MM_ROOT"], "Assetfile")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-pipeline-3.0.0.rc.2 lib/middleman-pipeline/template.rb