Class: ContainersManager::DockerService
- Inherits:
-
Object
- Object
- ContainersManager::DockerService
- Defined in:
- lib/containers_manager/services/docker_service.rb
Constant Summary collapse
- ALIVE_CONTAINER_ID_CMD =
'docker ps -q'
Instance Method Summary collapse
- #alive_ids ⇒ Object
-
#initialize(configuration) ⇒ DockerService
constructor
A new instance of DockerService.
Constructor Details
#initialize(configuration) ⇒ DockerService
Returns a new instance of DockerService.
5 6 7 |
# File 'lib/containers_manager/services/docker_service.rb', line 5 def initialize(configuration) @configuration = configuration end |
Instance Method Details
#alive_ids ⇒ Object
9 10 11 |
# File 'lib/containers_manager/services/docker_service.rb', line 9 def alive_ids system_call(ALIVE_CONTAINER_ID_CMD).split("\n") end |