Sha256: 93aa4988df45819453becb5a42964dfe51317ee6ae9b0d9cc6ecdabbb043f807
Contents?: true
Size: 400 Bytes
Versions: 5
Compression:
Stored size: 400 Bytes
Contents
class Sfp::Module::MockCloud include Sfp::Resource def update_state @state['running'] = @model['running'] @state['description'] = @model['description'] @state['vms'] = {} end def create_vm(p={}) Sfp::Agent.logger.info p.inspect model = resolve_model(p['vm']) Sfp::Agent.logger.info "cpu=#{model['cpu']} memory=#{model['memory']}" false end def delete_vm(p={}) false end end
Version data entries
5 entries across 5 versions & 1 rubygems