Sha256: 30f7c895ac51a6e1e80cf8643247b2a71440d95c98ccea16a1ef7cf540e1e0ae
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
# frozen_string_literal: true require 'rexml/document' require 'set' module KPM class KillbillPluginArtifact < BaseArtifact class << self def pull(logger, group_id, artifact_id, packaging = 'jar', classifier = nil, version = 'LATEST', plugin_name = nil, destination_path = nil, sha1_file = nil, force_download = false, verify_sha1 = true, overrides = {}, ssl_verify = true) coordinate_map = { group_id: group_id, artifact_id: artifact_id, packaging: packaging, classifier: classifier, version: version } pull_and_put_in_place(logger, coordinate_map, plugin_name, destination_path, false, sha1_file, force_download, verify_sha1, overrides, ssl_verify) end def versions(overrides = {}, ssl_verify = true) plugins = { java: {} } nexus = nexus_remote(overrides, ssl_verify) [[:java, KPM::BaseArtifact::KILLBILL_JAVA_PLUGIN_GROUP_ID]].each do |type_and_group_id| response = REXML::Document.new nexus.search_for_artifacts(type_and_group_id[1]) response.elements.each('searchNGResponse/data/artifact') do |element| artifact_id = element.elements['artifactId'].text plugins[type_and_group_id[0]][artifact_id] ||= SortedSet.new plugins[type_and_group_id[0]][artifact_id] << element.elements['version'].text end end plugins end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kpm-0.11.1 | lib/kpm/killbill_plugin_artifact.rb |
kpm-0.11.0 | lib/kpm/killbill_plugin_artifact.rb |