class Rhea::Kubernetes::Commands::Export

Public Instance Methods

perform() click to toggle source
# File lib/rhea/kubernetes/commands/export.rb, line 5
def perform
  commands = All.new.perform
  commands_data = commands.map do |command|
    {
      expression: command.expression,
      image: command.image,
      process_count: command.process_count
    }
  end
  {
    version: Rhea::VERSION,
    created_at: Time.now.utc,
    commands: commands_data
  }
end