Sha256: 222d2717c0f4cb761745c16a8de65f0a68cbfdf05f4cef540028ee2bb219c3d9

Contents?: true

Size: 329 Bytes

Versions: 4

Compression:

Stored size: 329 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-libvirt-0.9.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.8.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.7.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.6.0 lib/fog/libvirt/requests/compute/vm_action.rb