1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Merge pull request #201 from bhollis/master

Validate the template option for "middleman init"
This commit is contained in:
Thomas Reynolds 2011-12-14 09:43:35 -08:00
commit 85e1918dd6

View file

@ -41,7 +41,7 @@ module Middleman
def init(name)
key = options[:template].to_sym
unless Middleman::Templates.registered.has_key?(key)
key = :default
raise Thor::Error.new "Unknown project template '#{key}'"
end
thor_group = Middleman::Templates.registered[key]