lib/guard/webrick.rb
def start
      UI.info "Starting up WEBrick..."
      if running?
        UI.error "Another instance of WEBrick::HTTPServer is running."
        false
      else
        @pid = Spoon.spawnp('ruby',
          File.expand_path(File.join(File.dirname(__FILE__), %w{webrick server.rb})),
          @options[:host],
          @options[:port].to_s,
          @options[:ssl].to_s,
          @options[:docroot]
        )
        wait_for_port
        if @options[:launchy]
          scheme = options[:ssl] ? "https" : "http"
          Launchy.open("#{scheme}://#{@options[:host]}:#{@options[:port]}")
          @options[:launchy] = false  # only run once
        end
        @pid
      end
    end
def start
      UI.info "Starting up WEBrick..."
      if running?
        UI.error "Another instance of WEBrick::HTTPServer is running."
        false
      else
        @pid = Spoon.spawnp('ruby',
          File.expand_path(File.join(File.dirname(__FILE__), %w{webrick server.rb})),
          @options[:host],
          @options[:port].to_s,
          @options[:ssl].to_s,
          @options[:docroot]
        )
        wait_for_port
        if @options[:launchy]
          scheme = options[:ssl] ? "https" : "http"
          Launchy.open("#{scheme}://#{@options[:host]}:#{@options[:port]}")
          @options[:launchy] = false  # only run once
        end
        @pid
      end
    end
=================
 = Guard methods =
 =================
 Call once when guard starts