Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Capistrano 2.x 中,我可以current_task.name在任务内部使用来获取当前任务的名称。Capistrano 3中是否有类似的东西?
current_task.name
弄清楚了:
task :foo do |task| current_task_name = task.name_with_args end