Sha256: 2be4ae0af821b6a90d4a77e61df5bcb8655a5fa492ef5c8651ea1e9291bc6b88

Contents?: true

Size: 459 Bytes

Versions: 2

Compression:

Stored size: 459 Bytes

Contents

module Rhea
  module Kubernetes
    module Commands
      class Delete < Base
        attr_accessor :command

        def initialize(command_attributes)
          self.command = Command.new(command_attributes)
        end

        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
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rhea-0.2.0 lib/rhea/kubernetes/commands/delete.rb
rhea-0.1.0 lib/rhea/kubernetes/commands/delete.rb