@Zanna
Capistrano itself seems like it may be on-topic -- if this were a question about deploying and automating a server and the OP were using Perl or Python I would guess we would accept it. The question is also on-topic on SO but it obviously can't be migrated there anymore, plus we don't migrate unless something is actually off-topic (or the OP requests it). The answer looks like it should work but I don't want to upvote, at least as written, for two reasons.