Starting point
None of this code is final - indeed, most of it is just gubbins - but it shows the path I mean to take with the code, I hope. Much more to come.
This commit is contained in:
22
bin/sharp-coin
Executable file
22
bin/sharp-coin
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
$: << 'lib' # TODO: remove this
|
||||
|
||||
require 'sharp-coin'
|
||||
|
||||
SharpCoin::Config::read(ARGV[0])
|
||||
|
||||
server = SharpCoin::Server.new
|
||||
|
||||
trap("INT") do
|
||||
server.stop
|
||||
end
|
||||
|
||||
trap("KILL") do
|
||||
server.stop
|
||||
end
|
||||
|
||||
EM::run do
|
||||
EventMachine.epoll
|
||||
server.run
|
||||
end
|
Reference in New Issue
Block a user