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-2.16.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.15.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.14.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.13.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.12.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.11.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.10.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.10.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.9.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.8.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.7.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.6.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.5.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.4.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.3.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.2.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.2.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.1.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.1.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-2.0.0 lib/knapsack_pro/config/ci/circle.rb