class Etcd < Formula homepage "https://github.com/coreos/etcd" url "https://github.com/coreos/etcd/archive/v2.0.10.tar.gz" sha256 "6029113d9870e5c6f0d10adbd2b6670958a46575114a094b86b607771a0e5ff3" head "https://github.com/coreos/etcd.git" bottle do cellar :any sha256 "b1bb954e636b25d75d41f3119c817b67bf3b3dcbd37dca7e95f79ada8782a506" => :yosemite sha256 "c0af5a4ef05c4c09e4a2e20610cbc49e6cc6bb389f79f84f03497da44ed631f0" => :mavericks sha256 "09d0f70cfcce1a5e5e922d39d4d3f232adc1a08beb3a2a00dd282fcb6c4f95ac" => :mountain_lion end depends_on "go" => :build def install ENV["GOPATH"] = buildpath system "./build" bin.install "bin/etcd" bin.install "bin/etcdctl" end def plist; <<-EOS.undent KeepAlive SuccessfulExit Label #{plist_name} ProgramArguments #{opt_bin}/etcd RunAtLoad WorkingDirectory #{var} EOS end end