Sha256: 083c28db6d9a855439fcd0277319006d0e4a8c5dbb29aac508ff516f0f6cbbe6
Contents?: true
Size: 517 Bytes
Versions: 22
Compression:
Stored size: 517 Bytes
Contents
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
Version data entries
22 entries across 22 versions & 1 rubygems