<NME> setup.rb
<BEF> # encoding: utf-8

# This hook will be executed in context of current generator object before templater start to generate new files.
# You can update context hash and register hooks. Don't forget to use merge! instead of merge, because you are
# manipulating with one object, rather than returning new one.

# rango create app blog --models=post,tag --controllers=posts,tags --router=usher|rack-router|rack-mount --template-engine=erubis
hook do |generator, context|
  models = [context[:models]].compact.flatten # the flatten thing: if you have --models=post, it would be just a string
  controllers = [context[:controllers]].compact.flatten
hook do |generator, context|
  context[:orm] = "datamapper" unless context[:orm]
  context[:router] = "usher" unless context[:router]
  context[:template_engine] = "haml" unless context[:template_engine]
end
  context[:git_deployer] = true unless context.has_key?(:git_deployer)
  context[:code_cleaner] = true unless context.has_key?(:git_deployer)
  context[:email_hash] = Base64.encode64(context[:email]) if context[:email]
end

<MSG> Added git-deployer & code-cleaner integration

<DFF> @@ -4,7 +4,7 @@
 # You can update context hash and register hooks. Don't forget to use merge! instead of merge, because you are
 # manipulating with one object, rather than returning new one.
 
-# rango create app blog --models=post,tag --controllers=posts,tags --router=usher|rack-router|rack-mount --template-engine=erubis
+# rango create app blog --models=post,tag --controllers=posts,tags --router=usher|rack-router|rack-mount --template-engine=erubis --no-code-cleaner --no-git-deployer
 hook do |generator, context|
   models = [context[:models]].compact.flatten # the flatten thing: if you have --models=post, it would be just a string
   controllers = [context[:controllers]].compact.flatten
@@ -12,4 +12,6 @@ hook do |generator, context|
   context[:orm] = "datamapper" unless context[:orm]
   context[:router] = "usher" unless context[:router]
   context[:template_engine] = "haml" unless context[:template_engine]
+  context[:git_deployer] = true unless context.has_key?(:git_deployer)
+  context[:code_cleaner] = true unless context.has_key?(:git_deployer)
 end

Added git-deployer & code-cleaner integration