Sha256: cacdab947de5e91fbabfc67c2e47db9997c62c7ff516be413d286a58cd975b2c

Contents?: true

Size: 329 Bytes

Versions: 110

Compression:

Stored size: 329 Bytes

Contents

module Fog
  module Compute
    class Libvirt
      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

110 entries across 110 versions & 17 rubygems

Version Path
fog-libvirt-0.5.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.4.2 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.4.1 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.4.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.3.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.2.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.1.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.0.4 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.0.3 lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.0.2 lib/fog/libvirt/requests/compute/vm_action.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/libvirt/requests/compute/vm_action.rb
fog-libvirt-0.0.1 lib/fog/libvirt/requests/compute/vm_action.rb
fog-1.29.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-1.28.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-1.27.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-1.26.0 lib/fog/libvirt/requests/compute/vm_action.rb
fog-1.25.0 lib/fog/libvirt/requests/compute/vm_action.rb
nsidc-fog-1.24.1 lib/fog/libvirt/requests/compute/vm_action.rb
fog-1.24.0 lib/fog/libvirt/requests/compute/vm_action.rb
ns-fog-1.22.11 lib/fog/libvirt/requests/compute/vm_action.rb