Class: Tapioca::Commands::Annotations

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

Instance Method Summary collapse

Methods inherited from Command

#run

Methods included from Tapioca::CliHelper

#netrc_file, #rbi_formatter, #say_error

Constructor Details

#initialize(central_repo_root_uris:, auth: nil, netrc_file: nil, central_repo_index_path: CENTRAL_REPO_INDEX_PATH, typed_overrides: {}) ⇒ Annotations

Returns a new instance of Annotations.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/tapioca/commands/annotations.rb', line 18

def initialize(
  central_repo_root_uris:,
  auth: nil,
  netrc_file: nil,
  central_repo_index_path: CENTRAL_REPO_INDEX_PATH,
  typed_overrides: {}
)
  super()
  @outpath = T.let(Pathname.new(DEFAULT_ANNOTATIONS_DIR), Pathname)
  @central_repo_root_uris = central_repo_root_uris
  @auth = auth
  @netrc_file = netrc_file
  @netrc_info = T.let(nil, T.nilable(Netrc))
  @tokens = T.let(repo_tokens, T::Hash[String, T.nilable(String)])
  @indexes = T.let({}, T::Hash[String, RepoIndex])
  @typed_overrides = typed_overrides
end