instance method
Gem::Commands::RebuildCommand#build_package
build_package(gemspec, source_date_epoch, output_file)
lib/rubygems/commands/rebuild_command.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/commands/rebuild_command.rb, line 201
def build_package(gemspec, source_date_epoch, output_file)
with_source_date_epoch(source_date_epoch) do
spec = Gem::Specification.load(gemspec)
if spec
Gem::Package.build(
spec,
options[:force],
options[:strict],
output_file
)
else
alert_error "Error loading gemspec. Aborting."
terminate_interaction 1
end
end
end
No documentation available