BVB Source Codes

goreplay Show gor.rb Source code

Return Download goreplay: download gor.rb Source code - Download goreplay Source code - Type:.rb
  1. require "language/go"
  2.  
  3. class Gor < Formula
  4.   desc "Real-time HTTP traffic replay tool written in Go"
  5.   homepage "https://gortool.com"
  6.   url "https://github.com/buger/gor/archive/v0.14.0.tar.gz"
  7.   sha256 "62260a6f5cabde571b91d5762fba9c47691643df0a58565cbe808854cd064dc8"
  8.   head "https://github.com/buger/gor.git"
  9.  
  10.   bottle do
  11.     cellar :any_skip_relocation
  12.     sha256 "c382403de70a41b7445920a02051f5e82030704aaaae70cfcd4e8f401cc87f6a" => :el_capitan
  13.     sha256 "4b76b3785584897800e87967f1af9510208faefe46f57d7bd6f8b40a7133c19b" => :yosemite
  14.     sha256 "d186cb1566d33ab8f78215e69934f49dd96becb1c236905b4502d94399ae1974" => :mavericks
  15.   end
  16.  
  17.   depends_on "go" => :build
  18.  
  19.   go_resource "github.com/bitly/go-hostpool" do
  20.     url "https://github.com/bitly/go-hostpool.git",
  21.       :revision => "d0e59c22a56e8dadfed24f74f452cea5a52722d2"
  22.   end
  23.  
  24.   go_resource "github.com/buger/elastigo" do
  25.     url "https://github.com/buger/elastigo.git",
  26.       :revision => "23fcfd9db0d8be2189a98fdab77a4c90fcc3a1e9"
  27.   end
  28.  
  29.   go_resource "github.com/google/gopacket" do
  30.     url "https://github.com/google/gopacket.git",
  31.       :revision => "aa09ced736460d76535444c825932a0742975f7d"
  32.   end
  33.  
  34.   def install
  35.     ENV["GOPATH"] = buildpath
  36.     mkdir_p buildpath/"src/github.com/buger/"
  37.     ln_sf buildpath, buildpath/"src/github.com/buger/gor"
  38.     Language::Go.stage_deps resources, buildpath/"src"
  39.  
  40.     system "go", "build", "-o", "#{bin}/gor", "-ldflags", "-X main.VERSION \"#{version}\""
  41.   end
  42.  
  43.   test do
  44.     assert_match version.to_s, shell_output("#{bin}/gor", 1)
  45.   end
  46. end
  47.  
downloadgor.rb Source code - Download goreplay Source code
Related Source Codes/Software:
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10
django-rest-framework - Web APIs for Django. http:/... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
postal - 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10

 Back to top