homebrew-core/Formula/cloud-watch.rb

22 lines
616 B
Ruby
Raw Normal View History

2011-06-06 14:26:05 +00:00
class CloudWatch < AmazonWebServicesFormula
homepage "https://aws.amazon.com/developertools/2534"
url "https://ec2-downloads.s3.amazonaws.com/CloudWatch-2010-08-01.zip"
version "1.0.20.0"
sha1 "c3f5b856b3ff8e1ae06d0ad5db5dd27c214c4881"
2010-07-18 11:32:21 +00:00
def caveats
s = standard_instructions "AWS_CLOUDWATCH_HOME"
s += <<-EOS.undent
export SERVICE_HOME="$AWS_CLOUDWATCH_HOME"
EOS
s
end
test do
ENV["JAVA_HOME"] = `/usr/libexec/java_home`.chomp
ENV["AWS_CLOUDWATCH_HOME"] = libexec
ENV["SERVICE_HOME"] = libexec
assert_match /w.x.y.z/, shell_output("#{bin}/mon-version")
end
end