Sha256: f7c18bd34f63a088610f6440a75da4587d53478eec8934d571f43ac8ea71003a
Contents?: true
Size: 1019 Bytes
Versions: 2
Compression:
Stored size: 1019 Bytes
Contents
module NexusCli class BaseRemote attr_reader :configuration attr_reader :connection extend Forwardable def_delegators :@connection, :status, :nexus_url, :nexus, :sanitize_for_id, :running_nexus_pro? # @param [Hash] overrides # @param [Boolean] ssl_verify def initialize(overrides, ssl_verify=true) @configuration = Configuration::parse(overrides) @connection = Connection.new(configuration, ssl_verify) end # Parses a given artifact string into its # four, distinct, Maven pieces. # # @param artifact [String] the Maven identifier # # @return [Array<String>] an Array with four elements def parse_artifact_string(artifact) split_artifact = artifact.split(":") if(split_artifact.size < 4) raise ArtifactMalformedException end group_id, artifact_id, version, extension = split_artifact version.upcase! if version.casecmp("latest") return group_id, artifact_id, version, extension end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nexus_cli-3.0.0 | lib/nexus_cli/base_remote.rb |
nexus_cli-2.0.2 | lib/nexus_cli/base_remote.rb |