Class: KPM::BaseArtifact
- Inherits:
-
Object
- Object
- KPM::BaseArtifact
- Defined in:
- lib/kpm/base_artifact.rb
Direct Known Subclasses
KauiArtifact, KillbillPluginArtifact, KillbillServerArtifact
Constant Summary collapse
- KILLBILL_GROUP_ID =
'org.kill-bill.billing'- KILLBILL_ARTIFACT_ID =
'killbill-profiles-killbill'- KILLBILL_PACKAGING =
'war'- KILLBILL_CLASSIFIER =
nil- KILLPAY_ARTIFACT_ID =
'killbill-profiles-killpay'- KILLPAY_PACKAGING =
'war'- KILLPAY_CLASSIFIER =
nil- KILLBILL_JAVA_PLUGIN_GROUP_ID =
'org.kill-bill.billing.plugin.java'- KILLBILL_JAVA_PLUGIN_PACKAGING =
'jar'- KILLBILL_JAVA_PLUGIN_CLASSIFIER =
nil- KILLBILL_RUBY_PLUGIN_GROUP_ID =
'org.kill-bill.billing.plugin.ruby'- KILLBILL_RUBY_PLUGIN_PACKAGING =
'tar.gz'- KILLBILL_RUBY_PLUGIN_CLASSIFIER =
nil- KAUI_GROUP_ID =
'org.kill-bill.billing.kaui'- KAUI_ARTIFACT_ID =
'kaui-standalone'- KAUI_PACKAGING =
'war'- KAUI_CLASSIFIER =
nil
Class Method Summary collapse
- .nexus_defaults ⇒ Object
- .nexus_remote(overrides = {}, ssl_verify = true) ⇒ Object
- .pull(logger, group_id, artifact_id, packaging = 'jar', classifier = nil, version = 'LATEST', destination_path = nil, sha1_file = nil, force_download = false, verify_sha1 = true, overrides = {}, ssl_verify = true) ⇒ Object
- .pull_from_fs(logger, file_path, destination_path = nil) ⇒ Object
Class Method Details
.nexus_defaults ⇒ Object
51 52 53 54 55 56 |
# File 'lib/kpm/base_artifact.rb', line 51 def nexus_defaults { url: 'https://oss.sonatype.org', repository: 'releases' } end |
.nexus_remote(overrides = {}, ssl_verify = true) ⇒ Object
47 48 49 |
# File 'lib/kpm/base_artifact.rb', line 47 def nexus_remote(overrides={}, ssl_verify=true) nexus_remote ||= NexusCli::RemoteFactory.create(nexus_defaults.merge(overrides || {}), ssl_verify) end |
.pull(logger, group_id, artifact_id, packaging = 'jar', classifier = nil, version = 'LATEST', destination_path = nil, sha1_file = nil, force_download = false, verify_sha1 = true, overrides = {}, ssl_verify = true) ⇒ Object
38 39 40 41 |
# File 'lib/kpm/base_artifact.rb', line 38 def pull(logger, group_id, artifact_id, packaging='jar', classifier=nil, version='LATEST', 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, nil, destination_path, false, sha1_file, force_download, verify_sha1, overrides, ssl_verify) end |
.pull_from_fs(logger, file_path, destination_path = nil) ⇒ Object
43 44 45 |
# File 'lib/kpm/base_artifact.rb', line 43 def pull_from_fs(logger, file_path, destination_path=nil) pull_from_fs_and_put_in_place(logger, file_path, destination_path) end |