Sha256: 9244e1474ae5ca0a5fe61627154b697d22e2ab99594494b4c71d84da9275fd2d

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

module Fog
  module Libvirt
    class Compute
      class Real
        def vm_action(uuid, action, *params)
          domain = client.lookup_domain_by_uuid(uuid)
          domain.send(action, *params)
          true
        end
      end

      class Mock
        def vm_action(uuid, action, *params)
          true
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-libvirt-0.12.2 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.12.1 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.12.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.11.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.10.1 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.10.0 lib/fog/libvirt/requests/compute/vm_action.rb