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

Version Path
shipit-engine-0.5.2 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.5.1 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.5.0 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.10 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.9 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.8 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.7 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.6 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.5 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.4 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.3 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.2 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.1 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.4.0 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.3.1 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.3.0 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.2.3 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.2.2 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.2.1 app/models/deploy_spec/capistrano_discovery.rb
shipit-engine-0.2.0 app/models/deploy_spec/capistrano_discovery.rb