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/rackspace/requests/queues/create_queue.rb

17 lines
318 B
Ruby
Raw Normal View History

module Fog
module Rackspace
class Queues
class Real
def create_queue(queue_name)
request(
:body => Fog::JSON.encode({}),
:expects => 201,
:method => 'PUT',
:path => "queues/#{queue_name}"
)
end
end
end
end
end