Class: PEClient::Resource::BaseWithPort
- Inherits:
-
Object
- Object
- PEClient::Resource::BaseWithPort
- Defined in:
- lib/pe_client/resources/base_with_port.rb
Overview
Base class for PEClient resources where a custom port is needed.
Direct Known Subclasses
ActivityV1, ActivityV2, CodeManagerV1, MetricsV1, MetricsV2, NodeClassifierV1, NodeInventoryV1, OrchestratorV1, PuppetAdminV1, PuppetCAV1, PuppetDB, PuppetV3, RBACV1, RBACV2
Instance Method Summary collapse
-
#initialize(client, port: self.class::PORT) ⇒ BaseWithPort
constructor
We need to customise the port.
Constructor Details
#initialize(client, port: self.class::PORT) ⇒ BaseWithPort
We need to customise the port
25 26 27 28 29 30 |
# File 'lib/pe_client/resources/base_with_port.rb', line 25 def initialize(client, port: self.class::PORT) @client = client.deep_dup @client.base_url.port = port @client.connection.url_prefix = @client.base_url end |