fog--fog/lib/fog/terremark/parser.rb

20 lines
351 B
Ruby
Raw Normal View History

module Fog
module Terremark
module Shared
module Parser
2010-10-12 23:22:12 +00:00
remove_method :parse
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