class Rhea::Kubernetes::Commands::Delete

Attributes

command[RW]

Public Class Methods

new(command_attributes) click to toggle source
# File lib/rhea/kubernetes/commands/delete.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/delete.rb, line 11
def perform
  # NOTE: Deleting the rc sends a kill signal that doesn't gracefully stop Resque worker processes.
  api.delete_replication_controller(command.key, NAMESPACE)
end