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" 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