mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
28 lines
No EOL
491 B
Ruby
28 lines
No EOL
491 B
Ruby
require 'fog/core/collection'
|
|
require 'fog/vcloudng/models/compute/task'
|
|
|
|
module Fog
|
|
module Compute
|
|
class Vcloudng
|
|
|
|
class Tasks < Fog::Collection
|
|
model Fog::Compute::Vcloudng::Task
|
|
|
|
|
|
|
|
|
|
def all
|
|
|
|
end
|
|
|
|
def get(id)
|
|
data = service.get_task(id).body
|
|
return nil unless data
|
|
data[:id] = data[:href].split('/').last
|
|
new(data)
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end |