rex/exe/rex-server
Tim Kächele ede4916284 Add basic server setup
Add a command line tool to start a simple one node server setup
of the exchange
2024-02-18 21:26:52 +01:00

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
}