Class: DockerSwarm::System
- Defined in:
- lib/docker_swarm/models/system.rb
Overview
Access point for Docker System information and operations
Class Method Summary collapse
-
.df ⇒ Hash
Returns system-wide data usage information.
-
.info ⇒ Hash
Returns system information.
-
.resource_name ⇒ String
Override resource name to match API endpoint.
-
.up ⇒ String
Checks if the Docker daemon is responding.
-
.version ⇒ Hash
Returns Docker version information.
Methods inherited from Base
all, #as_json, #assign_attributes, #attributes, defined_attributes, find, #id, #initialize, #method_missing, #payload_for_docker, #persisted?, #reload, #respond_to_missing?, root_key, routes, #serializable_hash, where
Methods included from Concerns::Inspectable
Constructor Details
This class inherits a constructor from DockerSwarm::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DockerSwarm::Base
Class Method Details
.df ⇒ Hash
Returns system-wide data usage information
33 34 35 |
# File 'lib/docker_swarm/models/system.rb', line 33 def self.df Api.request(action: routes[:df]) end |
.info ⇒ Hash
Returns system information
15 16 17 |
# File 'lib/docker_swarm/models/system.rb', line 15 def self.info Api.request(action: routes[:info]) end |
.resource_name ⇒ String
Override resource name to match API endpoint
9 10 11 |
# File 'lib/docker_swarm/models/system.rb', line 9 def self.resource_name "system" end |