1

It is possible to have a one liner condition for exit with message?

if condition
  info "some message"
  exit
end

1 Answers1

0

To exit from Capistrano in a 1 line and including the message you can do something like this

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

I hope that this will help

MZaragoza
  • 10,108
  • 9
  • 71
  • 116