Sha256: 3ad1a9c06065d0a0612fd00889a79be1c9fa64c79d60a1b6fc9b3b93026acc35

Contents?: true

Size: 819 Bytes

Versions: 7

Compression:

Stored size: 819 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift << File.expand_path("../../lib", __FILE__)

require 'bug_hunter'
require 'launchy'
require 'fileutils'

if ARGV[0] == "--install"
  base_path = File.expand_path("../../", __FILE__)

  if File.exist?("public/javascripts/") && File.exist?("public/stylesheets/")
    FileUtils.cp_r("#{base_path}/public/javascripts/", "public/")
    FileUtils.cp_r("#{base_path}/public/stylesheets/", "public/")
  else
    raise ArgumentError, "public/javascripts and public/stylesheets do not exist"
  end


  exit 0
end

Thread.start do
  sleep 2.5
  Launchy.open("http://localhost:9753")
end

Rack::Server.new(:Port => "9753",
                 :config => File.dirname(__FILE__)+"/../config.ru",
                 :AccessLog => [],
                 :pid => nil,
                 :Host => "0.0.0.0").start

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bug_hunter-0.1.1 bin/bug_hunter
bug_hunter-0.1.0 bin/bug_hunter
bug_hunter-0.0.6 bin/bug_hunter
bug_hunter-0.0.5 bin/bug_hunter
bug_hunter-0.0.4 bin/bug_hunter
bug_hunter-0.0.2 bin/bug_hunter
bug_hunter-0.0.1 bin/bug_hunter