[Ruby] Where do you put Rails code that normally runs from a command line?
Hedley Robertson
hedley at hedleyrobertson.com
Thu May 25 14:05:48 PDT 2006
On Tuesday 23 May 2006 11:30, John Wulff wrote:
> I use rake tasks for that sort of thing.
>
> desc 'Do some cool stuff.'
> task :command_name => :environment do
> do whatever
> end
>
> Put that in lib/tasks
> rake command_name
This is the approach I was thinking of taking. We have a number of command
line tasks we need to automate, and they make no sense to put a web interface
in front of... this makes me wonder about my approach much less, thanks.
Hrm... I finally stop lurking. I guess I should introduce myself real quick:
I am a dev contractor here in seattle. Born and raised in the area, got to go
play army all over the place in 1994, came back in 2000 to work (primarily)
in asp.net for ms... those were dark times ;) Much happier these days coding
ruby all day long for The Squad. I hope to make it out to a hacking night or
talk soon.
Cheers!
Hedley Robertson
hedley at hedleyrobertson.com
-------------------------------------------------------
More information about the Ruby
mailing list