2012-07-19 22:51:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class AwsSnsCli < AmazonWebServicesFormula
|
|
|
|
homepage 'http://aws.amazon.com/developertools/3688'
|
|
|
|
url 'http://sns-public-resources.s3.amazonaws.com/SimpleNotificationServiceCli-2010-03-31.zip'
|
2012-08-27 17:40:53 +00:00
|
|
|
# The version in the tarball is the API version; this is the tool version
|
2012-09-27 15:07:19 +00:00
|
|
|
version '2012-03-31'
|
2013-03-15 22:39:25 +00:00
|
|
|
sha1 'b7b2c1dc0e604b3fb4056845eeea03a51bc6cd7b'
|
2012-07-19 22:51:25 +00:00
|
|
|
|
|
|
|
def install
|
2012-09-09 16:50:03 +00:00
|
|
|
rm Dir['bin/*.cmd'] # Remove Windows versions
|
|
|
|
|
|
|
|
# There is a "service" binary, which of course will conflict with any number
|
|
|
|
# other brews that have a generically named tool. So don't just blindly
|
|
|
|
# install bin to the prefix.
|
|
|
|
jars = prefix/'jars'
|
|
|
|
jars.install "bin", "lib"
|
|
|
|
system "chmod +x #{jars}/bin/*"
|
|
|
|
bin.install_symlink Dir["#{jars}/bin/sns-*"]
|
2012-07-19 22:51:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
standard_instructions "AWS_SNS_HOME"
|
|
|
|
end
|
|
|
|
end
|