lib/kpm/killbill_server_artifact.rb in kpm-0.1.3 vs lib/kpm/killbill_server_artifact.rb in kpm-0.1.4
- old
+ new
@@ -3,10 +3,11 @@
module KPM
class KillbillServerArtifact < BaseArtifact
class << self
def versions(artifact_id, packaging=KPM::BaseArtifact::KILLBILL_PACKAGING, classifier=KPM::BaseArtifact::KILLBILL_CLASSIFIER, overrides={}, ssl_verify=true)
- coordinates = build_coordinates(KPM::BaseArtifact::KILLBILL_GROUP_ID, artifact_id, packaging, classifier)
+ coordinate_map = {:group_id => KPM::BaseArtifact::KILLBILL_GROUP_ID, :artifact_id => artifact_id, :packaging => packaging, :classifier => classifier}
+ coordinates = build_coordinates(coordinate_map)
response = REXML::Document.new nexus_remote(overrides, ssl_verify).search_for_artifacts(coordinates)
versions = SortedSet.new
response.elements.each('search-results/data/artifact/version') { |element| versions << element.text }
versions
end