Class: Spurious::Server::State::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/spurious/server/state/update.rb

Instance Attribute Summary

Attributes inherited from Base

#config, #connection

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spurious::Server::State::Base

Instance Method Details

#execute!Object



11
12
13
14
15
# File 'lib/spurious/server/state/update.rb', line 11

def execute!
  ['stop', 'delete', 'init', 'up'].each do |state|
    connection.receive_data(JSON.generate({:type => state}))
  end
end