"middleman init" will create a project in the current directory. Fixes #1181.
This commit is contained in:
parent
3995ad850c
commit
ca50f21fac
2 changed files with 19 additions and 9 deletions
|
@ -43,7 +43,7 @@ module Middleman::Cli
|
|||
:desc => 'Skip Git ignores and keeps'
|
||||
# The init task
|
||||
# @param [String] name
|
||||
def init(name)
|
||||
def init(name = '.')
|
||||
key = options[:template].to_sym
|
||||
unless ::Middleman::Templates.registered.has_key?(key)
|
||||
raise Thor::Error.new "Unknown project template '#{key}'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue