module Artifactory::Configurable

Direct including types

Defined in:

artifactory/configurable.cr

Constant Summary

KEYS = {:endpoint => String, :username => ::Union(String, ::Nil), :password => ::Union(String, ::Nil), :api_key => ::Union(String, ::Nil), :access_token => ::Union(String, ::Nil), :ssl_verify => Bool, :ssl_pem_file => ::Union(String, ::Nil), :read_timeout => Int32}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.keys #

[View source]

Instance Method Detail

def [](key) #

[View source]
def []?(key) #

[View source]
def access_token : Union(String, Nil) #

def access_token=(access_token : Union(String, Nil)) #

def api_key : Union(String, Nil) #

def api_key=(api_key : Union(String, Nil)) #

def configure(&) #

Set the configuration for this config, using a block.

Configure the API endpoint

Artifactory.configure do |config|
  config.endpoint = "http://www.my-artifactory-server.com/artifactory"
end

[View source]
def endpoint : String #

def endpoint=(endpoint : String) #

def password : Union(String, Nil) #

def password=(password : Union(String, Nil)) #

def read_timeout : Int32 #

def read_timeout=(read_timeout : Int32) #

def reset! #

[View source]
def ssl_pem_file : Union(String, Nil) #

def ssl_pem_file=(ssl_pem_file : Union(String, Nil)) #

def ssl_verify : Bool #

def ssl_verify=(ssl_verify : Bool) #

def username : Union(String, Nil) #

def username=(username : Union(String, Nil)) #