Sha256: 601e3a7ff96d19a1ac73fc7c6f124362702db21865c309510770dfd9fa197bb0

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

# encoding: utf-8

# This hook will run before templater creates new files from templates
# You should setup your variables for templates here
# Dir.pwd => the stubs directory location

# rango create app blog post,tag posts,tags
content_dir = ARGV.shift
application = ARGV.shift
models = ARGV.shift.try(:split, ",") || Array.new
controllers = ARGV.shift.try(:split, ",") || Array.new

context = {application: application, models: models, controllers: controllers}
Rango::CLI::Templater.create(content_dir, context)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rango-0.0.4 stubs/app/preprocess.rb