1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/xenserver/requests/compute/scan_sr.rb
Sergio Rubio 8dad76cee0 * Added new scan_sr request
* Added StorageRepository.scan method
* set_attribute request is now generic and can be used by any model
* Added VDI.set_attribute method
2012-04-16 21:09:52 +02:00

22 lines
376 B
Ruby

module Fog
module Compute
class XenServer
class Real
def scan_sr( ref, extra_args = {})
@connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => 'SR.scan'}, ref)
end
end
class Mock
def scan_sr(ref, extra_args = {})
Fog::Mock.not_implemented
end
end
end
end
end