Sha256: 985df797e0e38ccf71f78eb08776043de6da3773b645c9b2cec27ae9273c83b1

Contents?: true

Size: 391 Bytes

Versions: 7

Compression:

Stored size: 391 Bytes

Contents

module Kong
  class Server
    def self.version
      self.info['version'] rescue nil
    end

    def self.info
      Client.instance.get('/')
    end

    def self.status
      Client.instance.get('/status')
    end

    def self.cluster
      Client.instance.get('/cluster')
    end

    def self.remove_node(name)
      Client.instance.delete("/cluster/nodes/#{name}")
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
kong-client-0.4.0 lib/kong/server.rb
kong-0.3.4 lib/kong/server.rb
kong-0.3.3 lib/kong/server.rb
kong-0.3.2 lib/kong/server.rb
kong-0.3.1 lib/kong/server.rb
kong-0.3.0 lib/kong/server.rb
kong-0.2.0 lib/kong/server.rb