Sha256: 0477c17b5bc1c757ada3e36e3fb19a8eb6549664fd5ed9b5393a65228e4dd53f

Contents?: true

Size: 701 Bytes

Versions: 15

Compression:

Stored size: 701 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class V3
        class Real
          def vm_action(options = {})
            raise ArgumentError, "instance id is a required parameter" unless options.key? :id
            raise ArgumentError, "action is a required parameter" unless options.key? :action

            client.vm_action options[:id], options[:action]
          end
        end

        class Mock
          def vm_action(options = {})
            raise ArgumentError, "id is a required parameter" unless options.key? :id
            raise ArgumentError, "action is a required parameter" unless options.key? :action
            true
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
fog-ovirt-1.1.6 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.1.5 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.1.4 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.1.3 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.1.2 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.1.1 lib/fog/ovirt/requests/compute/v3/vm_action.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/vm_action.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/vm_action.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.1.0 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.0.4 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.0.3 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.0.2 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.0.1 lib/fog/ovirt/requests/compute/v3/vm_action.rb
fog-ovirt-1.0.0 lib/fog/ovirt/requests/compute/v3/vm_action.rb