Class: SwarmClusterCliOpe::Models::Stack
- Inherits:
-
Base
- Object
- Base
- SwarmClusterCliOpe::Models::Stack
show all
- Defined in:
- lib/swarm_cluster_cli_ope/models/stack.rb
Constant Summary
Constants inherited
from Base
Base::IDNotFoundOnObject
Instance Attribute Summary collapse
Class Method Summary
collapse
Methods inherited from Base
#docker_command, #docker_inspect, #initialize, #mapped_uri_connection
#logger
Instance Attribute Details
#name ⇒ :String
6
7
8
|
# File 'lib/swarm_cluster_cli_ope/models/stack.rb', line 6
def name
@name
end
|
#namespace ⇒ String
8
9
10
|
# File 'lib/swarm_cluster_cli_ope/models/stack.rb', line 8
def namespace
@namespace
end
|
#services ⇒ Integer
10
11
12
|
# File 'lib/swarm_cluster_cli_ope/models/stack.rb', line 10
def services
@services
end
|
Class Method Details
.all ⇒ Array<Stack>
13
14
15
|
# File 'lib/swarm_cluster_cli_ope/models/stack.rb', line 13
def self.all
Commands::Swarm.new.ls.result(object_class: Stack)
end
|