Sha256: 65884c1d322771843a8d4e35d6c061b39e67fac4326da90fd9019925cf6b1da2
Contents?: true
Size: 992 Bytes
Versions: 9
Compression:
Stored size: 992 Bytes
Contents
module FogExtensions module Kubevirt module Server extend ActiveSupport::Concern include ActionView::Helpers::NumberHelper attr_accessor :image_id def to_s name end def state status end def interfaces_attributes=(attrs) end def volumes_attributes=(attrs) end def uuid name end def mac interfaces.map(&:mac_address).compact.min end # TODO: Update once new API for reporting IP_ADRESSSES is set def ip_addresses [interfaces&.first&.ip_address] end def poweroff stop end def reset stop start end def vm_description _("%{cpu_cores} Cores and %{memory} memory") % { :cpu_cores => cpu_cores, :memory => number_to_human_size(memory.to_i) } end def select_nic(fog_nics, _nic) fog_nics.select { |iface| !iface.mac.nil? }[0] end end end end
Version data entries
9 entries across 9 versions & 1 rubygems