Sha256: 0a24860dc8dcf37b104298fb2335569008772ffd7c1340d717418636c3249329

Contents?: true

Size: 756 Bytes

Versions: 25

Compression:

Stored size: 756 Bytes

Contents

#!/usr/bin/env ruby

require 'redis'

ENV['REDIS_HOST'] = 'localhost' unless ENV['REDIS_HOST']
ENV['REDIS_PORT'] = '6379' unless ENV['REDIS_PORT']
ENV['REDIS_PASS'] = nil unless ENV['REDIS_PASS']
$redis = Redis.new(:host => ENV['REDIS_HOST'], :port => ENV['REDIS_PORT'], :password => ENV['REDIS_PASS'])

libpath = File.expand_path(File.join(File.dirname(__FILE__), "lib"))

$:.unshift(libpath)

require "#{libpath}/app.rb"
#Dir["#{ENV['HOME']}/.gaptool-server-plugins/*.rb"].each {|file| require file }
#Dir["#{libpath}/plugins/*.rb"].each {|file| require file }

instance = GaptoolServer.new
#$redis.smembers("plugins").each do |plugin|
##  puts "Loading Plugin #{plugin}"
#  instance.extend(Object.instance_eval{remove_const(plugin)})
#end

run instance

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
gaptool-server-0.4.13 config.ru
gaptool-server-0.4.12 config.ru
gaptool-server-0.4.11 config.ru
gaptool-server-0.4.10 config.ru
gaptool-server-0.4.9 config.ru
gaptool-server-0.4.8 config.ru
gaptool-server-0.4.7 config.ru
gaptool-server-0.4.6 config.ru
gaptool-server-0.4.5 config.ru
gaptool-server-0.4.4 config.ru
gaptool-server-0.4.3 config.ru
gaptool-server-0.4.2 config.ru
gaptool-server-0.4.1 config.ru
gaptool-server-0.4.0 config.ru
gaptool-server-0.3.8 config.ru
gaptool-server-0.3.7 config.ru
gaptool-server-0.3.6 config.ru
gaptool-server-0.3.3 config.ru
gaptool-server-0.3.2 config.ru
gaptool-server-0.3.1 config.ru