Class: Kube::Ctl::Instance
- Inherits:
-
Object
- Object
- Kube::Ctl::Instance
- Defined in:
- lib/kube/ctl/instance.rb
Instance Attribute Summary collapse
-
#kubeconfig ⇒ Object
readonly
Returns the value of attribute kubeconfig.
Instance Method Summary collapse
- #call(&block) ⇒ Object
-
#initialize(kubeconfig: ENV['KUBECONFIG']) ⇒ Instance
constructor
A new instance of Instance.
Constructor Details
#initialize(kubeconfig: ENV['KUBECONFIG']) ⇒ Instance
Returns a new instance of Instance.
8 9 10 |
# File 'lib/kube/ctl/instance.rb', line 8 def initialize(kubeconfig: ENV['KUBECONFIG']) @kubeconfig = kubeconfig end |
Instance Attribute Details
#kubeconfig ⇒ Object (readonly)
Returns the value of attribute kubeconfig.
6 7 8 |
# File 'lib/kube/ctl/instance.rb', line 6 def kubeconfig @kubeconfig end |
Instance Method Details
#call(&block) ⇒ Object
12 13 14 15 16 |
# File 'lib/kube/ctl/instance.rb', line 12 def call(&block) sb = StringBuilder.new sb.instance_eval(&block) if block sb end |