class Rhea::Kubernetes::Commands::Import

Attributes

data[RW]

Public Class Methods

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

Public Instance Methods

perform() click to toggle source
# File lib/rhea/kubernetes/commands/import.rb, line 11
def perform
  commands_data = data['commands']
  commands_data.each do |command_data|
    Scale.new(expression: command_data['expression'], process_count: command_data['process_count'], image: command_data['image']).perform
  end
end