gem - Ruby’s rubygem packages
Supported Uses in FPM
fpm supports using gem only as an input type. This means you can convert
gem input packages to output packages like deb, rpm, and more.
gem-specific command line flags
--gem-bin-path DIRECTORYThe directory to install gem executables
--gem-disable-dependency gem_nameThe gem name to remove from dependency list
--[no-]gem-embed-dependenciesShould the gem dependencies be installed?
--[no-]gem-env-shebangShould the target package have the shebang rewritten to use env?
--[no-]gem-fix-dependenciesShould the package dependencies be prefixed?
--[no-]gem-fix-nameShould the target package name be prefixed?
--gem-gem PATH_TO_GEMThe path to the ‘gem’ tool (defaults to ‘gem’ and searches your $PATH)
--gem-git-branch GIT_BRANCHWhen using a git repo as the source of the gem instead of rubygems.org, use this git branch.
--gem-git-repo GIT_REPOUse this git repo address as the source of the gem instead of rubygems.org.
--gem-package-name-prefix PREFIXName to prefix the package name with.
--gem-package-prefix NAMEPREFIX(DEPRECATED, use –package-name-prefix) Name to prefix the package name with.
--[no-]gem-prereleaseAllow prerelease versions of a gem
--gem-shebang SHEBANGReplace the shebang in the executables in the bin path with a custom string
--gem-stagingdir STAGINGDIRThe directory where fpm installs the gem temporarily before conversion. Normally a random subdirectory of workdir.
--[no-]gem-version-binsAppend the version to the bins