Quik Scripts Catalog / Directory / Registry - Ruby Quick Starter Template Wizard Scripts - Add Your Script!
To list all "official" registered quick starter templates / scripts type in your shell:
$ quick ls
Resulting in:
1..gem .:. Gem Quick Starter Template
2..gem-hoe .:. Gem Quick Starter Template (Hoe Classic Edition)
3..sinatra .:. Sinatra Quick Starter Template
...
To use a quick starter script and template use the new command and the script name. Example:
$ quik new gem
Resulting in:
Welcome, to the gem quick starter script.
Q: What's your gem's name? [hola]: hello
Q: What's your gem's module? [Hola]: Hello
Thanks! Ready-to-go. Stand back.
Downloading Gem Starter Template...
Setting up Gem Starter Template...
...
Done.
That's it. Now the gem starter code is ready in the hello
folder.
Example - gem-starter-template/quik.rb
:
###############################################
# Quik - Ruby Quick Starter Template Script
say "Hello from the gem quick starter wizard script"
name = ask "Name of the gem", "hola"
klass = ask "Module name of the gem", "Hola"
use "quikstart/gem-starter-template"
config do |c|
c.name = name
c.filename = name
c.klass = klass
end
say "Done."
say( "Welcome" )
title = ask( "What's your gem's name" )
puts "Yes, sir!" if yes?( "Add minitest" )
style = select( "Select your gem template", ["Standard", "Hoe (Classic)", "Bundler"] )
download and setup (unzip/unpack) template (from github repo)
use( 'quikstart/gem-starter-template' )
settings (variables) to use in templates (e.g. class $klass$
)
and filenames (e.g. lib/$filename$.rb
)
config do |c|
c.name = "hola"
c.klass = "Hola"
...
end
Send them along to the ruby-talk mailing list. Thanks!