Sha256: 827c7565182bf5ccb36c721a8b804c20e7f272e5bdeab335aa1635cc731fbc3d
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
require 'base64' require 'command_line_parser' module RedisMonitor def self.parse_arguments CommandLineParser.parse(ARGV.dup) end def self.store_arguments(args) ENV['REDIS_MONITOR_OPTS'] = Base64.encode64(Marshal.dump(args)) end def self.run args = parse_arguments store_arguments(args) system('lib/engine/bin/rails', 's', '-p', args[:http_port].to_s, '-e', 'production') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.2.1 | lib/redis_monitor.rb |