Class: Bcome::Node::Kube::Estate

Inherits:
Base
  • Object
show all
Defined in:
lib/objects/node/kube/estate.rb

Instance Attribute Summary

Attributes inherited from Base

#resources

Instance Method Summary collapse

Methods inherited from Base

#build, #initialize, #parent, #parse, #run

Constructor Details

This class inherits a constructor from Bcome::Node::Kube::Base

Instance Method Details

#child_node_klassObject



10
11
12
# File 'lib/objects/node/kube/estate.rb', line 10

def child_node_klass
  ::Bcome::Kube::Node::Namespace
end

#get_child_config_from_line(raw_line) ⇒ Object



14
15
16
17
# File 'lib/objects/node/kube/estate.rb', line 14

def get_child_config_from_line(raw_line)
  name, active, age = raw_line.split("\s")
  { name: name, active: active, age: age }
end

#get_child_node_commandObject

CONTAINS NAMESPACES



6
7
8
# File 'lib/objects/node/kube/estate.rb', line 6

def get_child_node_command
  'get namespaces'
end