Class: SwarmClusterCliOpe::Models::Stack

Inherits:
Base
  • Object
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

Methods included from LoggerConcern

#logger

Constructor Details

This class inherits a constructor from SwarmClusterCliOpe::Models::Base

Instance Attribute Details

#name:String

Returns:

  • (:String)


6
7
8
# File 'lib/swarm_cluster_cli_ope/models/stack.rb', line 6

def name
  @name
end

#namespaceString

Returns:

  • (String)


8
9
10
# File 'lib/swarm_cluster_cli_ope/models/stack.rb', line 8

def namespace
  @namespace
end

#servicesInteger

Returns:

  • (Integer)


10
11
12
# File 'lib/swarm_cluster_cli_ope/models/stack.rb', line 10

def services
  @services
end

Class Method Details

.allArray<Stack>

Returns:



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