Sha256: fb93988849a763dc6c524aceb627b6a363ecb6dccaf42eff4b205bec5a0f724c
Contents?: true
Size: 579 Bytes
Versions: 46
Compression:
Stored size: 579 Bytes
Contents
module Shipit class DeploySpec module CapistranoDiscovery def discover_deploy_steps discover_capistrano || super end def discover_rollback_steps discover_capistrano_rollback || super end def discover_capistrano [cap('deploy')] if capistrano? end def discover_capistrano_rollback [cap('deploy:rollback')] if capistrano? end def cap(command) bundle_exec("cap $ENVIRONMENT #{command}") end def capistrano? file('Capfile').exist? end end end end
Version data entries
46 entries across 46 versions & 1 rubygems