Sha256: 80e79ec842e0820324ed25c5e2ea588d7c8c2ee948aef784a7382cf1e2872ef1

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

module KnapsackPro
  module Config
    module CI
      class Codeship < Base
        def node_total
          # not provided
        end

        def node_index
          # not provided
        end

        def node_build_id
          ENV['CI_BUILD_NUMBER']
        end

        def commit_hash
          ENV['CI_COMMIT_ID']
        end

        def branch
          ENV['CI_BRANCH']
        end

        def project_dir
          # not provided
        end

        def detected
          ENV['CI_NAME'] == 'codeship' ? self.class : nil
        end

        def fixed_queue_split
          true
        end

        def ci_provider
          "Codeship"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knapsack_pro-5.4.1 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-5.4.0 lib/knapsack_pro/config/ci/codeship.rb