Class: SwarmClusterCliOpe::Models::Service
- Defined in:
- lib/swarm_cluster_cli_ope/models/service.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
Class Method Summary collapse
- .all(stack_name: nil) ⇒ Array<SwarmClusterCliOpe::Service>
- .find(service_name, stack_name: nil) ⇒ SwarmClusterCliOpe::Service
Instance Method Summary collapse
-
#containers ⇒ Array<SwarmClusterCliOpe::Container>
Containers del servizio.
-
#tasks ⇒ Array<Task>
Elenco dei task del servizio docker service ps SERVICE_NAME –format=“.}” -f “desired-state=running”.
Methods inherited from Base
#docker_command, #docker_inspect, #initialize, #mapped_uri_connection
Methods included from LoggerConcern
Constructor Details
This class inherits a constructor from SwarmClusterCliOpe::Models::Base
Instance Attribute Details
#id ⇒ String
8 9 10 |
# File 'lib/swarm_cluster_cli_ope/models/service.rb', line 8 def id @id end |
#name ⇒ String
6 7 8 |
# File 'lib/swarm_cluster_cli_ope/models/service.rb', line 6 def name @name end |
Class Method Details
Instance Method Details
#containers ⇒ Array<SwarmClusterCliOpe::Container>
Containers del servizio
23 24 25 |
# File 'lib/swarm_cluster_cli_ope/models/service.rb', line 23 def containers tasks.collect { |t| t.container } end |