Sha256: b7c2645501638f1432c7a217fba07e26f7bd84414f0875b4fb5ef58753c9d8f6
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
require 'templater' module StaticMatic module Generator extend Templater::Manifold desc "Generator for streamlining staticmatic" class StaticmaticGenerator < Templater::Generator desc "Creates a new staticmatic scaffold." first_argument :location, :required => true, :desc => "Project location" def destination_root File.expand_path(location) end def self.source_root File.join(File.dirname(__FILE__), '../templates') end glob! empty_directory :build, "build" empty_directory :javascripts, "javascripts" empty_directory :images, "images" end add :setup, StaticmaticGenerator end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tdreyno-staticmatic-2.9.0 | lib/staticmatic/generator.rb |