Sha256: 3e738ed002abb6abadf4b2197d2a43281613d5712c33fef9eaceaa903d8eee3f

Contents?: true

Size: 795 Bytes

Versions: 23

Compression:

Stored size: 795 Bytes

Contents

# frozen_string_literal: true

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 user_seat
          ENV['CI_COMMITTER_NAME']
        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

23 entries across 23 versions & 1 rubygems

Version Path
knapsack_pro-7.13.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.12.1 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.12.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.11.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.10.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.9.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.8.2 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.8.1 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.8.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.7.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.6.2 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.6.1 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.6.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.1.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.0.1 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-7.0.0 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-6.0.4 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-6.0.3 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-6.0.2 lib/knapsack_pro/config/ci/codeship.rb
knapsack_pro-6.0.1 lib/knapsack_pro/config/ci/codeship.rb