Sha256: dbea985472a30771386e5976550a3235774e8c469ff2d366df8c92be923adbc4

Contents?: true

Size: 832 Bytes

Versions: 3

Compression:

Stored size: 832 Bytes

Contents

require 'rexml/document'
require 'set'

module KPM
  class KillbillServerArtifact < BaseArtifact
    class << self
      KILLBILL_SERVER_ARTIFACT_ID = 'killbill-server'
      KILLBILL_SERVER_WAR = "#{KILLBILL_GROUP_ID}:#{KILLBILL_SERVER_ARTIFACT_ID}:war:jar-with-dependencies"

      def pull(version='LATEST', destination=nil, overrides={}, ssl_verify=true)
        nexus_remote(overrides, ssl_verify).pull_artifact("#{KILLBILL_SERVER_WAR}:#{version}", destination)
      end

      def versions(overrides={}, ssl_verify=true)
        response = REXML::Document.new nexus_remote(overrides, ssl_verify).search_for_artifacts(KILLBILL_SERVER_WAR)
        versions = SortedSet.new
        response.elements.each("search-results/data/artifact/version") { |element| versions << element.text }
        versions
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kpm-0.0.3 lib/kpm/killbill_server_artifact.rb
kpm-0.0.2 lib/kpm/killbill_server_artifact.rb
kpm-0.0.1 lib/kpm/killbill_server_artifact.rb