2012-04-12 07:17:58 -04:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class XenServer
|
|
|
|
class Real
|
|
|
|
require 'fog/xenserver/parser'
|
2014-02-19 07:30:59 -05:00
|
|
|
|
2012-04-19 04:53:56 -04:00
|
|
|
def set_attribute( klass, ref, attr_name, *value )
|
|
|
|
@connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "#{klass}.set_#{attr_name.gsub('-','_')}"}, ref, *value)
|
2012-04-12 07:17:58 -04:00
|
|
|
end
|
|
|
|
end
|
2014-02-19 07:30:59 -05:00
|
|
|
|
2012-04-12 07:17:58 -04:00
|
|
|
class Mock
|
2012-04-16 15:09:52 -04:00
|
|
|
def set_attribute( klass, ref, attr_name, value )
|
2012-04-12 07:17:58 -04:00
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|