Class: Git::Lint::Branches::Feature
- Inherits:
-
Object
- Object
- Git::Lint::Branches::Feature
- Extended by:
- Forwardable
- Defined in:
- lib/git/lint/branches/feature.rb
Overview
Represents a feature branch.
Instance Method Summary collapse
-
#initialize(environment: ENV, git_repo: GitPlus::Repository.new) ⇒ Feature
constructor
A new instance of Feature.
Constructor Details
#initialize(environment: ENV, git_repo: GitPlus::Repository.new) ⇒ Feature
Returns a new instance of Feature.
17 18 19 20 21 22 23 |
# File 'lib/git/lint/branches/feature.rb', line 17 def initialize environment: ENV, git_repo: GitPlus::Repository.new = "Invalid repository. Are you within a Git-enabled project?" fail Errors::Base, unless git_repo.exist? @current_environment = environment @selected_environment = load_environment end |