class NexusSW::LXD::Driver
Constants
- STATUS_CODES
Public Class Methods
convert_bools(oldhash)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 64 def self.convert_bools(oldhash) {}.tap do |retval| oldhash.each do |k, v| retval[k] = case v when "true" then true when "false" then false else v.is_a?(Hash) ? convert_bools(v) : v end end end end
Public Instance Methods
container(_container_id)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 48 def container(_container_id) raise "#{self.class}#container not implemented" end
container_state(_container_id)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 52 def container_state(_container_id) raise "#{self.class}#container_state not implemented" end
container_status(_container_id)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 44 def container_status(_container_id) raise "#{self.class}#container_status not implemented" end
create_container(_container_name, _container_options)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 24 def create_container(_container_name, _container_options) raise "#{self.class}#create_container not implemented" end
delete_container(_container_id)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 36 def delete_container(_container_id) raise "#{self.class}#delete_container not implemented" end
start_container(_container_id)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 28 def start_container(_container_id) raise "#{self.class}#start_container not implemented" end
stop_container(_container_id, _options = {})
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 32 def stop_container(_container_id, _options = {}) raise "#{self.class}#stop_container not implemented" end
transport_for(_container_name)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 60 def transport_for(_container_name) raise "#{self.class}#transport_for not implemented" end
update_container(_container_name, _container_options)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 40 def update_container(_container_name, _container_options) raise "#{self.class}#update_container not implemented" end
wait_for(_container_name, _what, _timeout = 60)
click to toggle source
# File lib/nexussw/lxd/driver.rb, line 56 def wait_for(_container_name, _what, _timeout = 60) raise "#{self.class}#wait_for not implemented" end