0
我的問題是類似How do I invoke one Capistrano task from another?Capistrano的任務
我想是能夠額外的東西來傳遞參數從富時調用它吧:
task :foo do
# this calls bar, I would like to pass params (i.e n = 10)
# as if I were calling cap bar -s n=10
# bar does not take arguments
bar
end
task :bar do
if exists?(:n)
puts "n is: #{n}"
end
end
聽起來很酷!我會給它一個鏡頭,並回到你身邊:-) – Abdo