Class: Technologist::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/technologist/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_detectorObject (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_repositoryObject (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

#frameworksObject



13
14
15
# File 'lib/technologist/repository.rb', line 13

def frameworks
  framework_detector.frameworks
end

#primary_frameworksObject



17
18
19
# File 'lib/technologist/repository.rb', line 17

def primary_frameworks
  framework_detector.primary_frameworks
end

#secondary_frameworksObject



21
22
23
# File 'lib/technologist/repository.rb', line 21

def secondary_frameworks
  framework_detector.secondary_frameworks
end