Class: KPM::KauiArtifact
Constant Summary
collapse
- KAUI_WAR =
"org.kill-bill.billing.kaui:kaui-standalone:war"
Constants inherited
from BaseArtifact
BaseArtifact::KILLBILL_GROUP_ID, BaseArtifact::KILLBILL_JAVA_PLUGIN_GROUP_ID, BaseArtifact::KILLBILL_RUBY_PLUGIN_GROUP_ID
Class Method Summary
collapse
nexus_defaults, nexus_remote
Class Method Details
.pull(version = 'LATEST', destination = nil, overrides = {}, ssl_verify = true) ⇒ Object
9
10
11
|
# File 'lib/kpm/kaui_artifact.rb', line 9
def pull(version='LATEST', destination=nil, overrides={}, ssl_verify=true)
nexus_remote(overrides, ssl_verify).pull_artifact("#{KAUI_WAR}:#{version}", destination)
end
|
.versions(overrides = {}, ssl_verify = true) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/kpm/kaui_artifact.rb', line 13
def versions(overrides={}, ssl_verify=true)
response = REXML::Document.new nexus_remote(overrides, ssl_verify).search_for_artifacts(KAUI_WAR)
versions = SortedSet.new
response.elements.each("search-results/data/artifact/version") { |element| versions << element.text }
versions
end
|