Amazon AWS SDK Manual do Utilizador Página 24

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 28
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 23
samples, you can quickly gain understanding of how to use the SDK for Ruby and implement typical AWS
programming patterns in Ruby.
Topics
Installing the samples (p. 21)
Set your AWS Credentials (p. 22)
Run the Samples (p. 22)
Installing the samples
When you install the SDK for Ruby using gem install, you get the libraries that you can use to start
building AWS applications in Ruby. However, to get the sample code, you'll need to download the SDK
source itself.
The SDK for Ruby is an open-source project hosted on GitHub. However, you don't need an account on
GitHub just to download the source code. In fact, you don't even need the git source control manager,
though if you do, updating the source to keep up with new versions of the SDK is easy.
To get the SDK for Ruby source, follow one of the following procedures.
To download the source with git
1. Open a terminal window and change to the directory where you want to clone the SDK for Ruby
source code. For example:
cd ~/source
2. Clone the AWS SDK for Ruby project with git:
git clone https://github.com/aws/aws-sdk-ruby.git
Note
If you have an account on GitHub and your have installed an SSH key, you can use the the SSH
git URL instead:
git clone [email protected]:aws/aws-sdk-ruby.git
To download the source without git
1. Download the latest SDK for Ruby source code archive using the following URL (either with your
browser, curl, wget or similar):
https://github.com/aws/aws-sdk-ruby/archive/master.zip
2. Unzip it into a local directory.
3. Open a terminal window and change to the directory where you unzipped the source archive.
The samples are in the samples directory in the SDK for Ruby source.You can view the samples by
listing this directory:
Version v1.0.0
21
AWS SDK for Ruby Developer Guide
Installing the samples
Vista de página 23
1 2 ... 19 20 21 22 23 24 25 26 27 28

Comentários a estes Manuais

Sem comentários