Class: FakeConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/kube/cluster/resource/dirty_tracking.rb

Overview


Minimal cluster double that provides .connection.ctl


Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ctl) ⇒ FakeConnection

Returns a new instance of FakeConnection.



161
162
163
# File 'lib/kube/cluster/resource/dirty_tracking.rb', line 161

def initialize(ctl)
  @ctl = ctl
end

Instance Attribute Details

#ctlObject (readonly)

Returns the value of attribute ctl.



159
160
161
# File 'lib/kube/cluster/resource/dirty_tracking.rb', line 159

def ctl
  @ctl
end