Skip to content

Instantly share code, notes, and snippets.

@jay16
Last active January 1, 2016 08:59
Show Gist options
  • Save jay16/8121762 to your computer and use it in GitHub Desktop.
Save jay16/8121762 to your computer and use it in GitHub Desktop.
desc "test"
task :test do
puts "params #{ENV['parmas']}"
end
如果使用的话:
rake test params="test"
task :test, :p1 do |t, args|
# args[:p1] will be "test"
end
rake test["test"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment