Sha256: a2190d9d8d93b7c3c65e3870a8b5cb6c0a6a5df66257e81bcc91948a02ddde72

Contents?: true

Size: 560 Bytes

Versions: 18

Compression:

Stored size: 560 Bytes

Contents

# 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
hook do |generator, context|
  models  = context[:models] || Array.new
  controllers = context[:controllers] || Array.new
  context.merge!(models: models, controllers: controllers)
end

Version data entries

18 entries across 16 versions & 1 rubygems

Version Path
rango-0.1.1.2.10 stubs/bigapp/setup.rb
rango-0.1.1.2.9 stubs/bigapp/setup.rb
rango-0.1.1.2.8 stubs/bigapp/setup.rb
rango-0.1.1.2.7 stubs/bigapp/setup.rb
rango-0.1.1.2.6 stubs/bigapp/setup.rb
rango-0.1.1.2.5 stubs/bigapp/setup.rb
rango-0.1.1.2.4 stubs/bigapp/setup.rb
rango-0.1.1.2.3 stubs/bigapp/setup.rb
rango-0.1.1.2.2 stubs/bigapp/setup.rb
rango-0.1.1.2.1 stubs/bigapp/setup.rb
rango-0.1.1.2 stubs/bigapp/setup.rb
rango-0.1.1.1 stubs/bigapp/setup.rb
rango-0.1.1 stubs/bigapp/setup.rb
rango-0.1.0 stubs/bigapp/setup.rb
rango-0.0.6 stubs/bigapp/setup.rb
rango-0.1.pre stubs/project/setup.rb
rango-0.1.pre stubs/app/setup.rb
rango-0.1.pre stubs/bigapp/setup.rb