class Fog::Network::Proxmox::Node

class Node model of VMs

Public Instance Methods

networks() click to toggle source
# File lib/fog/network/proxmox/models/node.rb, line 55
def networks
  @networks ||= Fog::Network::Proxmox::Networks.new(service: service,
                                                    node: self)
end
power(action) click to toggle source
# File lib/fog/network/proxmox/models/node.rb, line 60
def power(action)
  action_known = %w[reboot shutdown].include? action
  message = "Action #{action} not implemented"
  raise Fog::Errors::Error, message unless action_known
  service.power_node({ node: node }, command: action)
end
to_s() click to toggle source
# File lib/fog/network/proxmox/models/node.rb, line 51
def to_s
  node
end