Class: Kong::Server
- Inherits:
-
Object
- Object
- Kong::Server
- Defined in:
- lib/kong/server.rb
Class Method Summary collapse
Class Method Details
.cluster ⇒ Object
15 16 17 |
# File 'lib/kong/server.rb', line 15 def self.cluster Client.instance.get('/cluster') end |
.info ⇒ Object
7 8 9 |
# File 'lib/kong/server.rb', line 7 def self.info Client.instance.get('/') end |
.remove_node(name) ⇒ Object
19 20 21 |
# File 'lib/kong/server.rb', line 19 def self.remove_node(name) Client.instance.delete("/cluster/nodes/#{name}") end |
.status ⇒ Object
11 12 13 |
# File 'lib/kong/server.rb', line 11 def self.status Client.instance.get('/status') end |
.version ⇒ Object
3 4 5 |
# File 'lib/kong/server.rb', line 3 def self.version self.info['version'] rescue nil end |