Class: NexusCli::BaseRemote

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/nexus_cli/base_remote.rb

Direct Known Subclasses

OSSRemote, ProRemote

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(overrides, ssl_verify = true) ⇒ BaseRemote

Returns a new instance of BaseRemote.

Parameters:

  • overrides (Hash)
  • ssl_verify (Boolean) (defaults to: true)


11
12
13
14
# File 'lib/nexus_cli/base_remote.rb', line 11

def initialize(overrides, ssl_verify=true)
  @configuration = overrides ? Configuration.from_overrides(overrides) : Configuration.from_file
  @connection = Connection.new(configuration, ssl_verify)
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



3
4
5
# File 'lib/nexus_cli/base_remote.rb', line 3

def configuration
  @configuration
end

#connectionObject (readonly)

Returns the value of attribute connection.



4
5
6
# File 'lib/nexus_cli/base_remote.rb', line 4

def connection
  @connection
end