File: vmfusion.rb

package info (click to toggle)
ruby-fog-vmfusion 0.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 172 kB
  • ctags: 61
  • sloc: ruby: 305; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 707 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
20
21
22
23
24
25
26
27
28
29
module Fog
  module Compute
    class Vmfusion < Fog::Service
      autoload :Server, File.expand_path("../vmfusion/server", __FILE__)
      autoload :Servers, File.expand_path("../vmfusion/servers", __FILE__)

      model_path "fog/compute/vmfusion"

      model       :server
      collection  :servers

      class Mock
        def initialize(_options = {})
          Fog::Mock.not_implemented
        end
      end

      class Real
        def initialize(_options = {})
          require "fission"
	# ruby-fission is a dependency so apt will ensure its available
        #rescue LoadError => e
        #  retry if require("rubygems")
        #  raise e.message
        #end
      end
    end
  end
end