Module: Thermite::Package
- Included in:
- Tasks
- Defined in:
- lib/thermite/package.rb
Overview
Helpers to package the Rust library, using FPM.
Instance Method Summary collapse
-
#build_package ⇒ Object
Builds a tarball of the Rust-compiled shared library.
Instance Method Details
#build_package ⇒ Object
Builds a tarball of the Rust-compiled shared library.
32 33 34 35 36 |
# File 'lib/thermite/package.rb', line 32 def build_package filename = config.tarball_filename(config.toml[:package][:version]) tgz = Zlib::GzipWriter.new(File.open(filename, 'wb')) Archive::Tar::Minitar.pack(config.ruby_extension_path, tgz) end |