Sha256: 95b9c3983523d27828b567890131c1636fe57eb5631e2d9717f86865b6a5a45e

Contents?: true

Size: 582 Bytes

Versions: 10

Compression:

Stored size: 582 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.

# ace-gen project --user="Jakub Stastny" --name=101Ideas.cz --url=http://101ideas.cz

hook do |generator, context|
  context[:user] ||= ENV["USER"]
  context[:name] || raise("You have to specify at least --title=WebTitle")
  context[:url] ||= "http://#{context[:name]}"
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ace-0.4.9 project_generator/setup.rb
ace-0.4.8 project_generator/setup.rb
ace-0.4.7 project_generator/setup.rb
ace-0.4.6 project_generator/setup.rb
ace-0.4.5 project_generator/setup.rb
ace-0.4.4 project_generator/setup.rb
ace-0.4.3 project_generator/setup.rb
ace-0.4.2 project_generator/setup.rb
ace-0.4.1 project_generator/setup.rb
ace-0.4 project_generator/setup.rb