class Middleman::Cli::Init
A thor task for creating new projects
Public Instance Methods
init(name='.')
click to toggle source
The init task @param [String] name
# File lib/middleman-core/cli/init.rb, line 45 def init(name='.') key = options[:template].to_sym 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