1 #!/usr/bin/env ruby -Ku
2 ($
:.unshift File
.expand_path(File
.join( File
.dirname(__FILE__
), '..', 'lib' ))).uniq
!
3 %w
[jello rubygems optparse
].each
{|dep
| require dep
}
6 OptionParser
.new
do |opts
|
10 Moulds may be any string that matches a part of a path of a Ruby file relative\
11 to one of the entries in the Jello search path:
14 - <`gem contents jello`>/moulds
16 If a file matches earlier in the search path, later ones that also match will\
19 A directory may match, in which case all Ruby files in that directory will be\
22 The follow moulds are included for your enjoyment:
28 `jello [options] <mould> (<mould> <mould> …)`
31 opts
.on("-v", "--[no-]verbose", "Run verbosely") do |v
|
35 opts
.on("-d", "--[no-]debug", "Run extremely verbosely") do |d
|
39 opts
.on("-f", "--[no-]feedback", "Feedback on successful process") do |f
|
40 options
[:feedback] = f
43 opts
.on("-p", "--period PERIOD", "Period over which to cycle watcher process") do |p
|
47 opts
.on_tail("--help", "Show this help") do
51 opts
.on_tail("--version", "Show version") do
52 puts
"I'm Jello #{Jello::Version}!"
58 require Jello
::Mould.find(mould
)