Skip to content

Commit

Permalink
Documentation for yanking private gems
Browse files Browse the repository at this point in the history
  • Loading branch information
smellsblue committed Oct 26, 2015
1 parent fde4065 commit 9cc2b00
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/private_gems.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,16 @@ $ bundle

## Yanking

Yanking gems is not yet supported in Gemstash, but will be featured in a future
release.
If you push a private gem by accident, you can yank the gem with Rubygems:
```
$ RUBYGEMS_HOST=http://localhost:9292/private gem yank --key test_key private-example --version 0.1.0
```

Like with pushing, the `/private` portion of the host option tells Gemstash you
are interacting with private gems. Gemstash will only let you yank from
`/private`. Unlike pushing, Rubygems doesn't support `--host` for yank and
unyank (yet), so you need to specify the host via the `RUBYGEMS_HOST`
environment variable.

## Unyanking

Expand Down

0 comments on commit 9cc2b00

Please sign in to comment.