class DockerCloud::ContainerStreamAPI
Public Class Methods
new(uuid, command, headers, client)
click to toggle source
Calls superclass method
DockerCloud::API::new
# File lib/docker_cloud/api/container_stream_api.rb, line 3 def initialize(uuid, command, headers, client) @uuid = uuid @command = command super(headers, DockerCloud::Client::ApiType::CONTAINER, client) end
Private Instance Methods
root_path()
click to toggle source
# File lib/docker_cloud/api/container_stream_api.rb, line 15 def root_path 'app' end
websocket_path()
click to toggle source
# File lib/docker_cloud/api/container_stream_api.rb, line 11 def websocket_path @websocket_path ||= "/container/#{@uuid}/exec?command=#{@command}" end