Sha256: 0ff87cac06e67aa4ce759dc8e2f167962abfefb5a0301ee44dc64d2a0cf31e74
Contents?: true
Size: 629 Bytes
Versions: 5
Compression:
Stored size: 629 Bytes
Contents
Dir.chdir(__dir__) do require './perus/options' require './perus/pinger' require './perus/server' require './perus/version' end if ARGV[0] == 'server' Perus::Server::Server.new.run elsif ARGV[0] == 'pinger' Perus::Pinger::Pinger.new.run elsif ARGV[0] == 'console' require 'irb' # start in the Server namespace include Perus::Server # console is used to access the database. initialise a server to load # default settings and start the database connection. Server.new # remove the arg otherwise irb will try to load a file named 'console' ARGV.shift IRB.start end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
perus-0.1.7 | lib/perus.rb |
perus-0.1.6 | lib/perus.rb |
perus-0.1.5 | lib/perus.rb |
perus-0.1.4 | lib/perus.rb |
perus-0.1.3 | lib/perus.rb |