Sha256: d19e3f1d70723cd5cd97d12fa34f005a4dad07b8dd6132afb34152d0babfdb12
Contents?: true
Size: 438 Bytes
Versions: 43
Compression:
Stored size: 438 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
43 entries across 41 versions & 6 rubygems