Class: Technologist::Repository
- Inherits:
-
Object
- Object
- Technologist::Repository
- Defined in:
- lib/technologist/repository.rb
Instance Attribute Summary collapse
-
#framework_detector ⇒ Object
readonly
Returns the value of attribute framework_detector.
-
#git_repository ⇒ Object
readonly
Returns the value of attribute git_repository.
Instance Method Summary collapse
- #frameworks ⇒ Object
-
#initialize(repository_path) ⇒ Repository
constructor
A new instance of Repository.
- #primary_frameworks ⇒ Object
- #secondary_frameworks ⇒ Object
Constructor Details
#initialize(repository_path) ⇒ Repository
Returns a new instance of Repository.
8 9 10 11 |
# File 'lib/technologist/repository.rb', line 8 def initialize(repository_path) @git_repository = GitRepository.new(repository_path) @framework_detector = FrameworkDetector.new(@git_repository) end |
Instance Attribute Details
#framework_detector ⇒ Object (readonly)
Returns the value of attribute framework_detector.
6 7 8 |
# File 'lib/technologist/repository.rb', line 6 def framework_detector @framework_detector end |
#git_repository ⇒ Object (readonly)
Returns the value of attribute git_repository.
6 7 8 |
# File 'lib/technologist/repository.rb', line 6 def git_repository @git_repository end |
Instance Method Details
#frameworks ⇒ Object
13 14 15 |
# File 'lib/technologist/repository.rb', line 13 def frameworks framework_detector.frameworks end |
#primary_frameworks ⇒ Object
17 18 19 |
# File 'lib/technologist/repository.rb', line 17 def primary_frameworks framework_detector.primary_frameworks end |
#secondary_frameworks ⇒ Object
21 22 23 |
# File 'lib/technologist/repository.rb', line 21 def secondary_frameworks framework_detector.secondary_frameworks end |