File: create_volume.rb

package info (click to toggle)
ruby-fog-libvirt 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 508 kB
  • sloc: ruby: 2,593; makefile: 3
file content (19 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Fog
  module Libvirt
    class Compute
      module Shared
        def create_volume(pool_name, xml)
          client.lookup_storage_pool_by_name(pool_name).create_vol_xml(xml)
        end
      end

      class Real
        include Shared
      end

      class Mock
        include Shared
      end
    end
  end
end