class Rancher::Api::Machine
Constants
- DIGITAL_OCEAN
- VMWARE_VSPHERE
Public Class Methods
active()
click to toggle source
# File lib/rancher/api/models/machine.rb, line 25 def active where(state: 'active') end
transitioning()
click to toggle source
# File lib/rancher/api/models/machine.rb, line 21 def transitioning all.select { |m| m.transitioning.eql?('yes') } end
Public Instance Methods
driver_config()
click to toggle source
# File lib/rancher/api/models/machine.rb, line 30 def driver_config case driver when DIGITAL_OCEAN, VMWARE_VSPHERE DriverConfig.new(attributes["#{driver}Config"]) end end
driver_config=(dc)
click to toggle source
# File lib/rancher/api/models/machine.rb, line 37 def driver_config=(dc) case driver when DIGITAL_OCEAN, VMWARE_VSPHERE attributes["#{driver}Config"] = dc.attributes end end