mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
322 B
Ruby
19 lines
322 B
Ruby
|
module Fog
|
||
|
module Terremark
|
||
|
module Shared
|
||
|
module Parser
|
||
|
|
||
|
def parse(data)
|
||
|
case data['type']
|
||
|
when 'application/vnd.vmware.vcloud.vApp+xml'
|
||
|
servers.new(data.merge!(:connection => self))
|
||
|
else
|
||
|
data
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|