homebrew-core/Formula/aws-sns-cli.rb
2012-09-09 09:50:31 -07:00

25 lines
831 B
Ruby

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'
# The version in the tarball is the API version; this is the tool version
version '2012-03-27'
sha1 'fcb6f651275b88f6225ed94f51568936ccba9e6d'
def install
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-*"]
end
def caveats
standard_instructions "AWS_SNS_HOME"
end
end