Class: RuuubyServiceSet
- Defined in:
- lib/ruuuby/ruuuby/api/docker/docker_service_set.rb
Overview
——————————————– ⚠️ ——————————————–
Constant Summary collapse
- SECTIONS_YAML =
%w(version services networks volumes).freeze
Instance Attribute Summary collapse
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
-
#initialize(path) ⇒ RuuubyServiceSet
constructor
A new instance of RuuubyServiceSet.
Constructor Details
#initialize(path) ⇒ RuuubyServiceSet
Returns a new instance of RuuubyServiceSet.
11 12 13 14 15 16 17 |
# File 'lib/ruuuby/ruuuby/api/docker/docker_service_set.rb', line 11 def initialize(path) @contents = ::File::YAML.read!(path, ::RuuubyManagerService::SECTIONS_YAML) @services = {} @contents['services'].each do |s, k| @services[s] = RuuubyService.new(s, k) end end |
Instance Attribute Details
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
9 10 11 |
# File 'lib/ruuuby/ruuuby/api/docker/docker_service_set.rb', line 9 def contents @contents end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
9 10 11 |
# File 'lib/ruuuby/ruuuby/api/docker/docker_service_set.rb', line 9 def services @services end |