File: flavors.rb

package info (click to toggle)
ruby-fog-aliyun 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 720 kB
  • sloc: ruby: 5,804; makefile: 6; sh: 3
file content (13 lines) | stat: -rw-r--r-- 302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
module Fog
  module Compute
    class Aliyun
      class Flavors < Fog::Collection
        model Fog::Compute::Aliyun::Flavor
        def all
          data = Fog::JSON.decode(service.list_server_types.body)['InstanceTypes']['InstanceType']
          load(data)
        end
      end
    end
  end
end