Posted By

noah on 02/08/10


wrapper ruby commandline system parameters utilities arguments backticks Rakefile

Versions (?)

Howto set up a Rake task that passes a parameter to a shell command or script

 / Published in: Ruby

  1. task :get, [:url] do |t, args|
  2. system %{wget #{args.url}}
  3. end

Report this snippet  

You need to login to post a comment.