Sha256: 27588c8785307f43dd9e9cbff1c65e6fd82f379db77e4b56a45e8e22d80d8261

Contents?: true

Size: 611 Bytes

Versions: 100

Compression:

Stored size: 611 Bytes

Contents

module KnapsackPro
  module Config
    module CI
      class Circle < Base
        def node_total
          ENV['CIRCLE_NODE_TOTAL']
        end

        def node_index
          ENV['CIRCLE_NODE_INDEX']
        end

        def node_build_id
          ENV['CIRCLE_BUILD_NUM']
        end

        def commit_hash
          ENV['CIRCLE_SHA1']
        end

        def branch
          ENV['CIRCLE_BRANCH']
        end

        def project_dir
          project_repo_name = ENV['CIRCLE_PROJECT_REPONAME']
          "/home/ubuntu/#{project_repo_name}" if project_repo_name
        end
      end
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
knapsack_pro-0.36.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.35.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.34.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.33.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.32.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.31.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.30.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.29.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.28.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.28.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.27.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.26.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.25.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.24.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.23.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.22.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.21.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.20.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.19.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-0.18.0 lib/knapsack_pro/config/ci/circle.rb