Class: Tapioca::Commands::Annotations

Inherits:
Command
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/tapioca/commands/annotations.rb

Instance Method Summary collapse

Methods included from Tapioca::CliHelper

#rbi_formatter, #say_error

Constructor Details

#initialize(central_repo_root_uri:, central_repo_index_path: CENTRAL_REPO_INDEX_PATH) ⇒ Annotations

Returns a new instance of Annotations.



17
18
19
20
21
# File 'lib/tapioca/commands/annotations.rb', line 17

def initialize(central_repo_root_uri:, central_repo_index_path: CENTRAL_REPO_INDEX_PATH)
  super()
  @central_repo_root_uri = central_repo_root_uri
  @index = T.let(fetch_index, RepoIndex)
end

Instance Method Details

#executeObject



24
25
26
27
28
# File 'lib/tapioca/commands/annotations.rb', line 24

def execute
  project_gems = list_gemfile_gems
  remove_expired_annotations(project_gems)
  fetch_annotations(project_gems)
end