Class: Tapioca::Commands::Command

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Includes:
Tapioca::CliHelper, Thor::Base
Defined in:
lib/tapioca/commands/command.rb

Direct Known Subclasses

AbstractGem, CommandWithoutTracker

Defined Under Namespace

Classes: FileWriter

Instance Method Summary collapse

Methods included from Tapioca::CliHelper

#netrc_file, #rbi_formatter, #say_error

Constructor Details

#initializeCommand

Returns a new instance of Command.



20
21
22
# File 'lib/tapioca/commands/command.rb', line 20

def initialize
  @file_writer = T.let(FileWriter.new, Thor::Actions)
end

Instance Method Details

#runObject



25
26
27
28
29
# File 'lib/tapioca/commands/command.rb', line 25

def run
  Tapioca.silence_warnings do
    execute
  end
end