2014-05-27 15:26:52 -04:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class Cloudstack
|
|
|
|
|
|
|
|
class Real
|
|
|
|
# Adds Swift.
|
|
|
|
#
|
2014-08-27 05:20:54 -04:00
|
|
|
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/addSwift.html]
|
|
|
|
def add_swift(*args)
|
|
|
|
options = {}
|
|
|
|
if args[0].is_a? Hash
|
|
|
|
options = args[0]
|
|
|
|
options.merge!('command' => 'addSwift')
|
|
|
|
else
|
|
|
|
options.merge!('command' => 'addSwift',
|
|
|
|
'url' => args[0])
|
|
|
|
end
|
2014-05-27 15:26:52 -04:00
|
|
|
request(options)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|