Skip to content

Latest commit

 

History

History
 
 

gem

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Gem Repo

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

Advanced option

Gem repositories does not have any other opinions.