Class: Tapioca::Commands::AbstractDsl

Inherits:
CommandWithoutTracker show all
Includes:
RBIFilesHelper, SorbetHelper
Defined in:
lib/tapioca/commands/abstract_dsl.rb

Direct Known Subclasses

DslCompilerList, DslGenerate, DslVerify

Constant Summary

Constants included from SorbetHelper

SorbetHelper::FEATURE_REQUIREMENTS, SorbetHelper::SORBET_BIN, SorbetHelper::SORBET_EXE_PATH_ENV_VAR, SorbetHelper::SORBET_GEM_SPEC, SorbetHelper::SORBET_PAYLOAD_URL, SorbetHelper::SPOOM_CONTEXT

Instance Method Summary collapse

Methods included from RBIFilesHelper

#duplicated_nodes_from_index, #index_rbi, #index_rbis, #location_to_payload_url, #validate_rbi_files

Methods included from SorbetHelper

#sorbet, #sorbet_path, #sorbet_supports?

Methods inherited from Command

#run

Methods included from Tapioca::CliHelper

#netrc_file, #rbi_formatter, #say_error

Constructor Details

#initialize(requested_constants:, requested_paths:, outpath:, only:, exclude:, file_header:, tapioca_path:, skip_constant: [], quiet: false, verbose: false, number_of_workers: nil, auto_strictness: true, gem_dir: DEFAULT_GEM_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, app_root: ".", halt_upon_load_error: true, compiler_options: {}, lsp_addon: false) ⇒ AbstractDsl

Returns a new instance of AbstractDsl.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/tapioca/commands/abstract_dsl.rb', line 34

def initialize(
  requested_constants:,
  requested_paths:,
  outpath:,
  only:,
  exclude:,
  file_header:,
  tapioca_path:,
  skip_constant: [],
  quiet: false,
  verbose: false,
  number_of_workers: nil,
  auto_strictness: true,
  gem_dir: DEFAULT_GEM_DIR,
  rbi_formatter: DEFAULT_RBI_FORMATTER,
  app_root: ".",
  halt_upon_load_error: true,
  compiler_options: {},
  lsp_addon: false
)
  @requested_constants = requested_constants
  @requested_paths = requested_paths
  @outpath = outpath
  @only = only
  @exclude = exclude
  @file_header = file_header
  @tapioca_path = tapioca_path
  @quiet = quiet
  @verbose = verbose
  @number_of_workers = number_of_workers
  @auto_strictness = auto_strictness
  @gem_dir = gem_dir
  @rbi_formatter = rbi_formatter
  @app_root = app_root
  @halt_upon_load_error = halt_upon_load_error
  @skip_constant = skip_constant
  @compiler_options = compiler_options
  @lsp_addon = lsp_addon

  super()
end