Class: NexusCli::BaseRemote
- Inherits:
-
Object
- Object
- NexusCli::BaseRemote
- Extended by:
- Forwardable
- Defined in:
- lib/nexus_cli/base_remote.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(overrides, ssl_verify = true) ⇒ BaseRemote
constructor
A new instance of BaseRemote.
Constructor Details
#initialize(overrides, ssl_verify = true) ⇒ BaseRemote
Returns a new instance of BaseRemote.
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
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
3 4 5 |
# File 'lib/nexus_cli/base_remote.rb', line 3 def configuration @configuration end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
4 5 6 |
# File 'lib/nexus_cli/base_remote.rb', line 4 def connection @connection end |