2011-06-06 14:26:05 +00:00
|
|
|
class CloudWatch < AmazonWebServicesFormula
|
2015-01-20 19:12:43 +00:00
|
|
|
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
|
|
|
|
2010-07-08 17:37:32 +00:00
|
|
|
def caveats
|
|
|
|
s = standard_instructions "AWS_CLOUDWATCH_HOME"
|
|
|
|
s += <<-EOS.undent
|
|
|
|
export SERVICE_HOME="$AWS_CLOUDWATCH_HOME"
|
|
|
|
EOS
|
2015-01-20 19:12:43 +00:00
|
|
|
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")
|
2010-07-08 17:37:32 +00:00
|
|
|
end
|
2011-02-22 19:36:18 +00:00
|
|
|
end
|