Project

General

Profile

Download (473 Bytes) Statistics
| Branch: | Tag: | Revision:
module FogExtensions
module Libvirt
module Server

def to_s
name
end

def nics_attributes=(attrs); end

def volumes_attributes=(attrs); end

# Libvirt expect units in KB, while we use bytes
def memory
attributes[:memory_size].to_i * 1024
end

def memory= mem
attributes[:memory_size] = mem.to_i / 1024 if mem
end

def reset
poweroff
start
end

end
end
end
    (1-1/1)