Tim Kächele
ede4916284
Add a command line tool to start a simple one node server setup of the exchange
23 lines
364 B
Ruby
Executable File
23 lines
364 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require "bundler/setup"
|
|
require "rex"
|
|
|
|
puts <<~STR
|
|
__
|
|
/ _)
|
|
_.----._/ /
|
|
/ /
|
|
__/ ( | ( |
|
|
/__.-'|_|--|_|
|
|
|
|
Ruby Exchange (Rex)
|
|
Author: Tim Kächele
|
|
License: AGPLv3
|
|
STR
|
|
|
|
EM.run {
|
|
Rex::Server::SimpleServerSetup.new(ARGV[0], ARGV[1].to_i).start
|
|
}
|