fog/fog-libvirt

View on GitHub
lib/fog/libvirt/requests/compute/volume_action.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Fog
  module Libvirt
    class Compute
      class Real
        def volume_action(key, action, options={})
          get_volume({:key => key}, true).send(action)
          true
        end
      end

      class Mock
        def volume_action(action, options={})
          true
        end
      end
    end
  end
end