Sha256: 31fe52890097ff6ce1308a3affa53c2b104d41b41cdf3ad2cfce534762f7ebf8

Contents?: true

Size: 723 Bytes

Versions: 16

Compression:

Stored size: 723 Bytes

Contents

unless Fog.mocking?

  module Fog
    module Rackspace
      class Servers

        # List all flavors (IDs and names only)
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'id'<~Integer> - Id of the flavor
        #     * 'name'<~String> - Name of the flavor
        def list_flavors
          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => 'flavors.json'
          )
        end

      end
    end
  end

else

  module Fog
    module Rackspace
      class Servers

        def list_flavors
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-0.0.58 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.57 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.56 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.55 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.54 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.53 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.52 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.51 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.50 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.49 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.48 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.47 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.46 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.45 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.44 lib/fog/rackspace/requests/servers/list_flavors.rb
fog-0.0.43 lib/fog/rackspace/requests/servers/list_flavors.rb