Sha256: 51e7c5b15b0e197a97499b9450f2c7e0c7c0ad0cff210e8f71740747f3c422d9

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Branches
      module Environments
        # Provides Circle CI build environment feature branch information.
        class CircleCI
          def initialize repo: Git::Kit::Repo.new
            @repo = repo
          end

          def name
            "origin/#{repo.branch_name}"
          end

          def shas
            repo.shas start: "origin/master", finish: name
          end

          private

          attr_reader :repo
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
git-lint-1.4.0 lib/git/lint/branches/environments/circle_ci.rb
git-lint-1.3.0 lib/git/lint/branches/environments/circle_ci.rb
git-lint-1.2.0 lib/git/lint/branches/environments/circle_ci.rb
git-lint-1.1.1 lib/git/lint/branches/environments/circle_ci.rb
git-lint-1.1.0 lib/git/lint/branches/environments/circle_ci.rb
git-lint-1.0.1 lib/git/lint/branches/environments/circle_ci.rb
git-lint-1.0.0 lib/git/lint/branches/environments/circle_ci.rb