class Rhea::Kubernetes::Commands::Get

Attributes

command[RW]

Public Class Methods

new(command_attributes) click to toggle source
# File lib/rhea/kubernetes/commands/get.rb, line 7
def initialize(command_attributes)
  self.command = Command.new(command_attributes)
end

Public Instance Methods

perform() click to toggle source
# File lib/rhea/kubernetes/commands/get.rb, line 11
def perform
  controller = api.get_replication_controllers(label_selector: "name=#{command.key}").first
  controller_to_command(controller)
end