Class: Giblish::GitSummaryIndexBuilder
- Inherits:
-
Object
- Object
- Giblish::GitSummaryIndexBuilder
- Defined in:
- lib/giblish/buildindex.rb
Overview
Builds an index page with a summary of what branches have been generated
Instance Method Summary collapse
-
#initialize(repo, branches, tags) ⇒ GitSummaryIndexBuilder
constructor
A new instance of GitSummaryIndexBuilder.
- #source ⇒ Object
Constructor Details
#initialize(repo, branches, tags) ⇒ GitSummaryIndexBuilder
Returns a new instance of GitSummaryIndexBuilder.
374 375 376 377 378 379 |
# File 'lib/giblish/buildindex.rb', line 374 def initialize(repo, branches, ) @branches = branches @tags = @git_repo = repo @repo_url = repo.remote.url end |
Instance Method Details
#source ⇒ Object
381 382 383 384 385 386 387 388 |
# File 'lib/giblish/buildindex.rb', line 381 def source <<~ADOC_SRC #{generate_header} #{generate_branch_info} #{generate_tag_info} #{} ADOC_SRC end |