Deploy RubyGems Packages (Pushing Packages)

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Note

Applicable for Local repositories. While you can push to Virtual repositories, the actual deployment target is an underlying local repository configured within the virtual group. Not applicable for Remote repositories.

To push gems to this repository, you can set the global variable $RUBYGEMS_HOST to point to it as follows:

export RUBYGEMS_HOST=https://company.jfrog.io/artifactory/api/gems/john-gems-local

Example (Local Repository):

export RUBYGEMS_HOST=https://company.jfrog.io/artifactory/api/gems/john-ruby-test-local gem push mygem-1.0.0.gem

You can also specify the target repository when pushing the gem by using the --host option:

gem push <PACKAGE> --host https://company.jfrog.io/artifactory/api/gems/dsadsaa-gems-local

Where:

  • [local]: The name of your local RubyGems repository configured with a local deployment target

  • <PACKAGE>.gem: The path to your Ruby gem file