class DTK::State::Component::Attribute::KubeCrd

Public Instance Methods

get(namespace, assembly_name, component_name, attribute_name, opts = {}) click to toggle source
# File lib/state/component/providers/kube_crd.rb, line 4
def get(namespace, assembly_name, component_name, attribute_name, opts = {})
  assembly = Component.get(namespace, assembly_name, component_name, opts)
  attribute = assembly.attributes.find{ |attribute| attribute.name == attribute_name }
  Attribute.new(attribute_name, attribute, assembly)
end