Class: Vines::Stream::Server::FinalRestart

Inherits:
Vines::Stream::State show all
Defined in:
lib/vines/stream/server/final_restart.rb

Constant Summary

Constants inherited from Vines::Stream::State

Vines::Stream::State::BODY, Vines::Stream::State::STREAM

Instance Attribute Summary

Attributes inherited from Vines::Stream::State

#stream

Instance Method Summary collapse

Methods inherited from Vines::Stream::State

#==, #eql?, #hash

Methods included from Log

#log

Constructor Details

#initialize(stream, success = Ready) ⇒ FinalRestart

Returns a new instance of FinalRestart.



7
8
9
# File 'lib/vines/stream/server/final_restart.rb', line 7

def initialize(stream, success=Ready)
  super
end

Instance Method Details

#node(node) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/vines/stream/server/final_restart.rb', line 11

def node(node)
  raise StreamErrors::NotAuthorized unless stream?(node)
  stream.start(node)
  stream.write('<stream:features/>')
  stream.router << stream
  advance
end