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

Version Path
shipit-engine-0.31.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.30.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.29.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.28.1 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.28.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.27.1 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.27.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.26.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.25.1 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.25.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.24.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.23.1 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.23.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.22.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.21.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.20.1 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.20.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.19.0 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.18.1 app/models/shipit/deploy_spec/capistrano_discovery.rb
shipit-engine-0.18.0 app/models/shipit/deploy_spec/capistrano_discovery.rb