This directory contains a basic example of how artipie can be used as a Gem repository.
Try this example by running run.sh
script.
Basic configuration gem.yaml
:
repo:
type: gem
storage:
type: fs
path: /var/artipie/data
After creating the configuration file below, the configured Gem repository is ready for use.
Before uploading your gems, you should obtain a key for authorization. A base64 encoded login:password would be a valid key:
export GEM_HOST_API_KEY=$(echo -n "hello:world" | base64)
In order to upload a .gem
file into Gem repository, use gem push
command:
$ gem push my_first_gem-0.0.0.gem --host http://localhost:8080/gem
In order to install an existing gem, use gem install
command:
$ gem install my_first_gem --source http://localhost:8080/gem
Gem repositories does not have any other opinions.