sonatype / nexus-ruby-support

26 stars 7 forks source link

Improvement - Allow `gem nexus` to specify target repository. #43

Closed eddiewebb closed 10 years ago

eddiewebb commented 11 years ago

We support multiple teams on a central CI server, and each team has their own repository for publishing gems.

But based on the output of gem nexus help I don't see anyway to choose this per-project as the URL is configured in ~/.gem/nexus, and not a project specific file.

What I would like (unless I am missing some obvious way to do this via prop files) is to run

gem nexus mygem-1.0.gem --repo=team-one-releases gem nexus yourgem-1.0.gem --repo=team-two-releases

Argument can be repo name (with nexus host defined globally) or the full URL to the repo, no preference there.

mkristian commented 10 years ago

that should also work now. a new gem is on the way to rubygems.org

thanx for the idea, really needed once you have more then one hosted repo !!!