Sha256: 18c634c9d5f06e3bee76b1c31366f4b2146d863b68a81eaef056273a116e2790
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
module Rhea module Kubernetes module Commands class Redeploy < Base attr_accessor :command def initialize(command_attributes) self.command = Command.new(command_attributes) end def perform command_attributes = command.attributes.slice(:image, :expression) controller = Get.new(command_attributes).perform process_count = controller.process_count Scale.new(command_attributes.merge(process_count: 0)).perform Delete.new(command_attributes).perform Scale.new(command_attributes.merge(process_count: process_count)).perform 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/redeploy.rb |
rhea-0.1.0 | lib/rhea/kubernetes/commands/redeploy.rb |