Sha256: aeca6a03c7503153df8ebcd3cf9b6a1a6b1cf371a265aac46603adbe0ce8da07
Contents?: true
Size: 987 Bytes
Versions: 5
Compression:
Stored size: 987 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.find { |iface| !iface.mac.nil? } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems