Sha256: 985aa6a4dcabbb611a5df1c7825225ca1bdfffaf9e5035c5987ef438c85dec1b
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
module FogExtensions module OpenNebula module Server extend ActiveSupport::Concern include ActionView::Helpers::NumberHelper def vminterfaces interfaces end def select_nic(fog_nics, nic) fog_nics.detect {|fn| fn.vnet == nic.compute_attributes['vnetid']} # grab any nic on the same network end def vminterfaces_attributes=(attributes) true end def template_id "" end def vm_description _("%{cpus} CPUs and %{memory} memory") % {:cpus => cpu, :memory => number_to_human_size(memory.to_i)} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_one-0.4 | app/models/concerns/fog_extensions/opennebula/server.rb |