Class: Git::Lint::Branches::Environments::Local
- Inherits:
-
Object
- Object
- Git::Lint::Branches::Environments::Local
- Defined in:
- lib/git/lint/branches/environments/local.rb
Overview
Provides local build environment feature branch information.
Instance Method Summary collapse
- #commits ⇒ Object
-
#initialize(repository: GitPlus::Repository.new) ⇒ Local
constructor
A new instance of Local.
- #name ⇒ Object
Constructor Details
#initialize(repository: GitPlus::Repository.new) ⇒ Local
Returns a new instance of Local.
9 10 11 |
# File 'lib/git/lint/branches/environments/local.rb', line 9 def initialize repository: GitPlus::Repository.new @repository = repository end |
Instance Method Details
#commits ⇒ Object
17 18 19 |
# File 'lib/git/lint/branches/environments/local.rb', line 17 def commits repository.commits "#{repository.branch_default}..#{name}" end |
#name ⇒ Object
13 14 15 |
# File 'lib/git/lint/branches/environments/local.rb', line 13 def name repository.branch_name end |