单行退出,并在capistrano中显示消息

是否可能只有一个班轮条件才能退出并显示消息?

if condition
  info "some message"
  exit
end
zhangjuntu 回答:单行退出,并在capistrano中显示消息

要以1行从Capistrano退出,并包含消息,您可以执行以下操作

(info("Your message here ... ") && exit) if condition

我希望这会有所帮助

本文链接:https://www.f2er.com/3068425.html

大家都在问