Class: Gigest::GithubRepo
- Inherits:
-
Object
- Object
- Gigest::GithubRepo
- Defined in:
- lib/gigest/github/github_repo.rb
Instance Method Summary collapse
- #gems ⇒ Object
- #has_gemfile? ⇒ Boolean
-
#initialize(repository, gemfile) ⇒ GithubRepo
constructor
A new instance of GithubRepo.
- #name ⇒ Object
Constructor Details
#initialize(repository, gemfile) ⇒ GithubRepo
Returns a new instance of GithubRepo.
3 4 5 6 |
# File 'lib/gigest/github/github_repo.rb', line 3 def initialize(repository, gemfile) @repository = repository @gemfile = gemfile end |
Instance Method Details
#gems ⇒ Object
16 17 18 19 20 |
# File 'lib/gigest/github/github_repo.rb', line 16 def gems return [] if !has_gemfile? @gems ||= process_gemfile end |
#has_gemfile? ⇒ Boolean
12 13 14 |
# File 'lib/gigest/github/github_repo.rb', line 12 def has_gemfile? !@gemfile.nil? end |
#name ⇒ Object
8 9 10 |
# File 'lib/gigest/github/github_repo.rb', line 8 def name @repository.full_name end |