blob: 97879f0ce1ee8a83d3abbeeef1187ea2ec13fb1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  | 
require 'formula'
class RdsCommandLineTools < AmazonWebServicesFormula
  homepage 'http://aws.amazon.com/developertools/2928'
  url 'https://s3.amazonaws.com/rds-downloads/RDSCli-1.12.002.zip'
  sha1 'ce457bd18a315003215323b10bcf22239b8e57f0'
  def install
    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
  end
  def caveats
    s = standard_instructions "AWS_RDS_HOME", libexec
    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
  |