From 5694209052cb5d459633597692d95ad06bba4d63 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Fri, 19 Jan 2018 18:19:29 +0100 Subject: [PATCH] logstash@2.4: remove --- Formula/logstash@2.4.rb | 45 ----------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Formula/logstash@2.4.rb diff --git a/Formula/logstash@2.4.rb b/Formula/logstash@2.4.rb deleted file mode 100644 index 334d503e24..0000000000 --- a/Formula/logstash@2.4.rb +++ /dev/null @@ -1,45 +0,0 @@ -class LogstashAT24 < Formula - desc "Tool for managing events and logs" - homepage "https://www.elastic.co/products/logstash" - url "https://download.elastic.co/logstash/logstash/logstash-2.4.0.tar.gz" - sha256 "622c435c5c0f40e205fd4d9411eb409cc52992cf62dde4c7cd46e480cd8247cc" - - bottle :unneeded - - depends_on :java => "1.7+" - - def install - if build.head? - # Build the package from source - system "rake", "artifact:tar" - # Extract the package to the current directory - mkdir "tar" - system "tar", "--strip-components=1", "-xf", Dir["build/logstash-*.tar.gz"].first, "-C", "tar" - cd "tar" - end - - inreplace %w[bin/logstash], %r{^\. "\$\(cd `dirname \$SOURCEPATH`\/\.\.; pwd\)\/bin\/logstash\.lib\.sh\"}, ". #{libexec}/bin/logstash.lib.sh" - inreplace %w[bin/logstash-plugin], %r{^\. "\$\(cd `dirname \$0`\/\.\.; pwd\)\/bin\/logstash\.lib\.sh\"}, ". #{libexec}/bin/logstash.lib.sh" - inreplace %w[bin/logstash.lib.sh], /^LOGSTASH_HOME=.*$/, "LOGSTASH_HOME=#{libexec}" - libexec.install Dir["*"] - bin.install_symlink libexec/"bin/logstash" - bin.install_symlink libexec/"bin/logstash-plugin" - end - - def caveats; <<~EOS - Please read the getting started guide located at: - https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html - The logstash `plugin` command is available as `logstash-plugin`. - EOS - end - - test do - (testpath/"simple.conf").write <<~EOS - input { stdin { type => stdin } } - output { stdout { codec => rubydebug } } - EOS - - output = pipe_output("#{bin}/logstash -f simple.conf", "hello world\n") - assert_match /hello world/, output - end -end