2009-12-22 00:38:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-06-06 14:26:05 +00:00
|
|
|
class RdsCommandLineTools < AmazonWebServicesFormula
|
2012-04-26 04:05:56 +00:00
|
|
|
homepage 'http://aws.amazon.com/developertools/2928'
|
2013-01-19 17:19:23 +00:00
|
|
|
url 'https://s3.amazonaws.com/rds-downloads/RDSCli-1.10.003.zip'
|
2012-10-21 19:14:07 +00:00
|
|
|
sha1 '668cd776e88f76084164811cb4cab3e6373009dc'
|
2009-12-22 00:38:19 +00:00
|
|
|
|
|
|
|
def install
|
2012-12-16 17:25:10 +00:00
|
|
|
rm Dir['bin/*.cmd'] # Remove Windows command files
|
|
|
|
libexec.install "bin", "lib"
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
(bin/'service').unlink # Don't keep this symlink
|
2009-12-22 00:38:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
2012-12-16 17:25:10 +00:00
|
|
|
s = standard_instructions "AWS_RDS_HOME", libexec
|
2009-12-22 00:38:19 +00:00
|
|
|
s += <<-EOS.undent
|
|
|
|
|
|
|
|
To check that your setup works properly, run the following command:
|
|
|
|
rds-describe-db-instances --headers
|
|
|
|
|
|
|
|
You should see a header line. If you have database instances already configured,
|
|
|
|
you will see a description line for each database instance.
|
|
|
|
EOS
|
|
|
|
return s
|
|
|
|
end
|
|
|
|
end
|