aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/elasticsearch.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/elasticsearch.rb b/Library/Formula/elasticsearch.rb
index 4ae291868..492844cb0 100644
--- a/Library/Formula/elasticsearch.rb
+++ b/Library/Formula/elasticsearch.rb
@@ -5,9 +5,10 @@ class Elasticsearch < Formula
url 'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.5.tar.gz'
sha1 '8027a4ae1bef6876c7651b1590607c8ff6108820'
- head 'https://github.com/elasticsearch/elasticsearch.git'
-
- depends_on 'maven' if build.head?
+ head do
+ url 'https://github.com/elasticsearch/elasticsearch.git'
+ depends_on 'maven'
+ end
def cluster_name
"elasticsearch_#{ENV['USER']}"