File: fail.rake

package info (click to toggle)
capistrano 3.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 804 kB
  • sloc: ruby: 5,351; makefile: 5
file content (8 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
set :fail, proc { raise }
before "deploy:starting", :fail do
  on roles :all do
    execute :mkdir, "-p", shared_path
    execute :touch, shared_path.join("fail")
  end
  fetch(:fail)
end