mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
28 lines
491 B
Ruby
28 lines
491 B
Ruby
require 'fog/compute/models/server'
|
|
require 'fog/openstack/models/compute/metadata'
|
|
|
|
module Fog
|
|
module Compute
|
|
class OpenStack
|
|
|
|
class Host < Fog::Model
|
|
|
|
attribute :host_name
|
|
attribute :service
|
|
attribute :details
|
|
|
|
def initialize(attributes)
|
|
@connection = attributes[:connection]
|
|
super
|
|
end
|
|
|
|
def details
|
|
connection.get_host_details(self.host_name).body['host']
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
|
|
end
|