Class: Docker::Swarm

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/docker/swarm.rb,
lib/docker/swarm.rb

Overview

This class represents a Docker Swarm.

Class Method Summary collapse

Class Method Details

.get(opts = {}, conn = Docker.connection) ⇒ Object



12
13
14
15
16
# File 'lib/docker/swarm.rb', line 12

def get(opts = {}, conn = Docker.connection)
  swarm_json = conn.get("/swarm", opts)
  hash = Docker::Util.parse_json(swarm_json) || {}
  new(conn, hash)
end