class Git::Lint::Branches::Environments::CircleCI

Provides Circle CI build environment feature branch information.

Public Class Methods

new(repository: GitPlus::Repository.new) click to toggle source
# File lib/git/lint/branches/environments/circle_ci.rb, line 9
def initialize repository: GitPlus::Repository.new
  @repository = repository
end

Public Instance Methods

commits(= repository.commits("origin/ click to toggle source
# File lib/git/lint/branches/environments/circle_ci.rb, line 15
  def commits = repository.commits("origin/#{repository.branch_default}..#{name}")

  private

  attr_reader :repository
end
name(= "origin/ click to toggle source
# File lib/git/lint/branches/environments/circle_ci.rb, line 13
    def name = "origin/#{repository.branch_name}"

    def commits = repository.commits("origin/#{repository.branch_default}..#{name}")

    private

    attr_reader :repository
  end
end