class Git::Lint::Branches::Environments::Local
Provides local build environment feature branch information.
Public Class Methods
new(repository: GitPlus::Repository.new)
click to toggle source
# File lib/git/lint/branches/environments/local.rb, line 9 def initialize repository: GitPlus::Repository.new @repository = repository end
Public Instance Methods
commits(= repository.commits("
click to toggle source
# File lib/git/lint/branches/environments/local.rb, line 15 def commits = repository.commits("#{repository.branch_default}..#{name}") private attr_reader :repository end
name(= repository.branch_name)
click to toggle source
# File lib/git/lint/branches/environments/local.rb, line 13 def name = repository.branch_name def commits = repository.commits("#{repository.branch_default}..#{name}") private attr_reader :repository end end