Skip to content

Instantly share code, notes, and snippets.

View mjgp2's full-sized avatar

Matthew Painter mjgp2

View GitHub Profile
@stephen-masters
stephen-masters / get_latest_snapshot.rb
Created February 17, 2012 09:22
Get latest snapshot artifact from Sonatype Nexus
#---------------------------------------------------------------------
#
# Parse the response from Sonatype Nexus in order to determine the
# correct URI for the most recent snapshot of an artifact.
#
# Usage:
# ruby get_latest_snapshot.rb \
# -n http://localhost:8080/nexus \
# -g uk.co.scattercode \
# -a my-artifact \