#!/usr/bin/env ruby require 'rubygems' begin require File.dirname(__FILE__)+'/../lib/ginst.rb' require 'ruby-debug' puts 'Using development ginst' rescue LoadError require 'ginst' end Ginst::Ginst.working_dir= Dir.pwd if %w(start stop status).include? ARGV[0] Ginst::WebServer.send(ARGV[0]) else puts "#{$0} start|stop|status" end