Sha256: 0db98171aa299f49937910013af5e8ec0d0372191c601a284f68a4a833d8c936

Contents?: true

Size: 519 Bytes

Versions: 7

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

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

          def name
            repo.branch_name
          end

          def shas
            repo.shas start: "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/local.rb
git-lint-1.3.0 lib/git/lint/branches/environments/local.rb
git-lint-1.2.0 lib/git/lint/branches/environments/local.rb
git-lint-1.1.1 lib/git/lint/branches/environments/local.rb
git-lint-1.1.0 lib/git/lint/branches/environments/local.rb
git-lint-1.0.1 lib/git/lint/branches/environments/local.rb
git-lint-1.0.0 lib/git/lint/branches/environments/local.rb