def run(script, opts = {})

      load script

      #
      # apply options after loading the script so that anything specified on the command-line
      # will take precedence over defaults specified in the script
      #
      opts.each { |k, v|
        set k, v
      }

      if application.config[:debug] == true
        puts "watching #{script} for changes"
        watch script
      end

    end
def run(script, opts = {})

      load script

      #
      # apply options after loading the script so that anything specified on the command-line
      # will take precedence over defaults specified in the script
      #
      opts.each { |k, v|
        set k, v
      }

      if application.config[:debug] == true
        puts "watching #{script} for changes"
        watch script
      end

    end
run a script with the specified options applied to the config. This is
   called by bin/gopher2000
 @param [String] script path to script to run
 @param [Hash] opts options to pass to script. these will override any
   config options specified in the script, so you can use this to
   run on a different host/port, etc.