Sha256: 9af1ee9d0f650e356c6b0b46062ff97ca544522ee95168a9854e5d3ec86bb473
Contents?: true
Size: 664 Bytes
Versions: 5
Compression:
Stored size: 664 Bytes
Contents
module FogExtensions module AzureRM module Servers extend ActiveSupport::Concern included do alias_method_chain :all, :patched_arguments alias_method_chain :get, :patched_arguments end def all_with_patched_arguments(_options = {}) all_without_patched_arguments end def get_with_patched_arguments(uuid) raw_vm = service.list_all_vms.find { |vm| vm.name == uuid } virtual_machine_fog = Fog::Compute::AzureRM::Server.new(service: service) vm_hash = Fog::Compute::AzureRM::Server.parse(raw_vm) virtual_machine_fog.merge_attributes(vm_hash) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems