aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/etcdctl.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/etcdctl.rb b/Library/Formula/etcdctl.rb
new file mode 100644
index 000000000..0b374a777
--- /dev/null
+++ b/Library/Formula/etcdctl.rb
@@ -0,0 +1,16 @@
+require 'formula'
+
+class Etcdctl < Formula
+ homepage 'https://github.com/coreos/etcdctl'
+ url 'https://github.com/coreos/etcdctl/archive/v0.1.2.tar.gz'
+ sha1 '93befc2b5a9951ba6e9a94a969535ee8d695e693'
+ head 'https://github.com/coreos/etcdctl.git'
+
+ depends_on 'go' => :build
+
+ def install
+ ENV['GOPATH'] = buildpath
+ system "./build"
+ bin.install 'etcdctl'
+ end
+end