Sha256: 054683d071822416a4b5eeed8573a12855096950ba557f7d2d1a881c8de38b18

Contents?: true

Size: 373 Bytes

Versions: 21

Compression:

Stored size: 373 Bytes

Contents

require 'middleman-core/cli'

module Middleman::Cli
  class Init < Thor
    def init(name='.')
      key = :sculptor
      unless ::Middleman::Templates.registered.key?(key)
        raise Thor::Error, "Unknown project template '#{key}'"
      end

      thor_group = ::Middleman::Templates.registered[key]
      thor_group.new([name], options).invoke_all
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
middleman-sculptor-0.23 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.22 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.21 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.20 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.19 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.18 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.17 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.16 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.15 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.14 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.13 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.12 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.11 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.10 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.9 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.8 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.7 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.6 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.5 lib/middleman-sculptor/cli/init.rb
middleman-sculptor-0.4 lib/middleman-sculptor/cli/init.rb