Class: Kube::Cluster::Connection
- Inherits:
-
Object
- Object
- Kube::Cluster::Connection
- Defined in:
- lib/kube/cluster/connection.rb
Instance Attribute Summary collapse
-
#ctl ⇒ Object
readonly
Returns the value of attribute ctl.
-
#kubeconfig ⇒ Object
readonly
Returns the value of attribute kubeconfig.
Instance Method Summary collapse
-
#initialize(kubeconfig:) ⇒ Connection
constructor
A new instance of Connection.
- #inspect ⇒ Object
Constructor Details
#initialize(kubeconfig:) ⇒ Connection
Returns a new instance of Connection.
8 9 10 11 |
# File 'lib/kube/cluster/connection.rb', line 8 def initialize(kubeconfig:) @kubeconfig = kubeconfig @ctl = Kube::Ctl::Instance.new(kubeconfig: kubeconfig) end |
Instance Attribute Details
#ctl ⇒ Object (readonly)
Returns the value of attribute ctl.
6 7 8 |
# File 'lib/kube/cluster/connection.rb', line 6 def ctl @ctl end |
#kubeconfig ⇒ Object (readonly)
Returns the value of attribute kubeconfig.
6 7 8 |
# File 'lib/kube/cluster/connection.rb', line 6 def kubeconfig @kubeconfig end |
Instance Method Details
#inspect ⇒ Object
13 14 15 |
# File 'lib/kube/cluster/connection.rb', line 13 def inspect "#<#{self.class.name} kubeconfig=#{@kubeconfig.inspect}>" end |