class HyperDock::Resource::Containers
Public Instance Methods
attributes()
click to toggle source
# File lib/hyperdock/resource/containers.rb, line 17 def attributes { containers: containers } end
containers()
click to toggle source
# File lib/hyperdock/resource/containers.rb, line 7 def containers @containers ||= ::Docker::Container.all.map(&:id) end
links()
click to toggle source
# File lib/hyperdock/resource/containers.rb, line 11 def links @links ||= containers.map do |container| { "container:#{container}" => { href: "/container/#{container}" } } end.reduce(&:merge) end