Call the given block when invoked.
Normal command invocations just executes the execute
method of the command. Specifying an invocation block allows the test methods to override the normal action of a command to determine that it has been invoked correctly.
Register the Symbol
command
as a gem command.
Unregister the Symbol
command
as a gem command.
Build various indices
Compresses indices on disk
Builds and installs indices.
Perform an in-place update of the repository from newly added gems.
Writes the .gemspec specification (in Ruby) to the gem home’s specifications directory.
Reads the file index and extracts each file into the gem directory.
Ensures that files can’t be installed outside the gem directory.
Turn an array of [name, version, platform] into an array of NameTuple
objects.
Extracts the files in this package into destination_dir
If pattern
is specified, only entries matching that glob will be extracted.
Verifies the files of the gem
Reads a binary file at path
Writes a binary file to path
which is relative to +@gemhome+