Sha256: 1bf11e0fdb688972fe1a31849d013a0eb4a4180ee08e0f16eecc7733aa1c4667
Contents?: true
Size: 893 Bytes
Versions: 2
Compression:
Stored size: 893 Bytes
Contents
require 'nexus_cli' module KPM class BaseArtifact class << self KILLBILL_GROUP_ID = 'org.kill-bill.billing' KILLBILL_JAVA_PLUGIN_GROUP_ID = 'org.kill-bill.billing.plugin.java' KILLBILL_RUBY_PLUGIN_GROUP_ID = 'org.kill-bill.billing.plugin.ruby' def pull(group_id, artifact_id, packaging='jar', version='LATEST', destination=nil, overrides={}, ssl_verify=true) coordinates = "#{group_id}:#{artifact_id}:#{packaging}:#{version}" nexus_remote(overrides, ssl_verify).pull_artifact(coordinates, destination) end def nexus_remote(overrides={}, ssl_verify=true) nexus_remote ||= NexusCli::RemoteFactory.create(nexus_defaults.merge(overrides || {}), ssl_verify) end def nexus_defaults { url: 'https://repository.sonatype.org', repository: 'central-proxy' } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kpm-0.0.3 | lib/kpm/base_artifact.rb |
kpm-0.0.2 | lib/kpm/base_artifact.rb |