Sha256: 8cc5802824716e7e2380b55fd42479a71b7baf1f774842c525ae7f1617ce30fa
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
# coding: utf-8 # # Author:: Dangleterre Michaël # © Copyright ArubaCloud. # # LICENSE: MIT (http://opensource.org/licenses/MIT) # require 'fog/arubacloud/service' require 'fog/arubacloud/error' require 'benchmark' module Fog module ArubaCloud class Compute class Real def get_custom_templates body = self.body('GetAvailablePersonalTemplates') response = nil time = Benchmark.realtime { response = request(body, 'GetAvailablePersonalTemplates', 'GetAvailablePersonalTemplates Error') } Fog::Logger.debug("GetAvailablePersonalTemplates time: #{time}") if response['Success'] response else raise Fog::ArubaCloud::Errors::RequestError.new('Error in request.') end end # get_custom_templates class Mock def get_custom_templates raise Fog::Errors::MockNotImplemented.new( 'Mock not implemented. Feel free to contribute.' ) end # get_custom_templates end # Mock end # Real end # Compute end # ArubaCloud end # Fog
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-arubacloud-0.0.6 | lib/fog/arubacloud/compute/requests/get_custom_templates.rb |
fog-arubacloud-0.0.5 | lib/fog/arubacloud/compute/requests/get_custom_templates.rb |