Sha256: 442676bfc4189e9c9824c829dafb7023b1242e1ca46d65aa19da5f303caaf177
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require "rubygems" require 'gorgon/originator' require 'gorgon/listener' require 'gorgon/worker_manager' require 'gorgon/ping_service' require 'gorgon/version' WELCOME_MSG = "Welcome to Gorgon #{Gorgon::VERSION}" def start o = Originator.new o.originate end def listen l = Listener.new l.listen end def manage_workers config_path = ENV["GORGON_CONFIG_PATH"] manager = WorkerManager.build config_path manager.manage # For some reason I have to 'exit' here, otherwise WorkerManager process crashes exit end def ping_listeners PingService.new.ping_listeners end def usage #print instructions on how to use gorgon puts "\tstart - remotely runs all tests specified in gorgon.json" puts "\tlisten - starts a listener process using the settings in gorgon_listener.json" puts "\tping - pings listeners and shows hosts and gorgon's version they are running" end puts WELCOME_MSG case ARGV[0] when nil start when "start" start when "listen" listen when "manage_workers" manage_workers when "ping" ping_listeners when "help" usage else puts "Unknown command!" usage exit 1 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gorgon-0.2.0 | bin/gorgon |