Sha256: b7d740069819964209ae9af47875370b3b53b4f404c6d6d1f5c9d58d011954c1
Contents?: true
Size: 442 Bytes
Versions: 53
Compression:
Stored size: 442 Bytes
Contents
module Fog module Compute class Openvz class Real def start_server(id,options={}) vzctl("start",{:ctid => id}.merge(options)) end end class Mock def start_server(id,options={}) server = self.data[:servers].find { |s| s['ctid'].to_s == id.to_s } unless server.nil? server['status'] = 'running' end end end end end end
Version data entries
53 entries across 53 versions & 3 rubygems