Yes,
task :my_task do puts ENV['MESSAGE'] end
rake my_task MESSAGE=Testing
-Shawn
Yes,
task :my_task do puts ENV['MESSAGE'] end
rake my_task MESSAGE=Testing
-Shawn
Shawn Roske wrote:
task :my_task do puts ENV['MESSAGE'] end
rake my_task MESSAGE=Testing
One might even shortcut that, for svn commits:
task :ci => [:test] do system("svn ci -m=#{ENV['m']}") end
rake ci m='what we did'