Class: Dev::Aws

Inherits:
Object show all
Defined in:
lib/firespring_dev_commands/aws.rb,
lib/firespring_dev_commands/aws/s3.rb,
lib/firespring_dev_commands/aws/login.rb,
lib/firespring_dev_commands/aws/account.rb,
lib/firespring_dev_commands/aws/profile.rb,
lib/firespring_dev_commands/aws/route53.rb,
lib/firespring_dev_commands/aws/parameter.rb,
lib/firespring_dev_commands/aws/credentials.rb,
lib/firespring_dev_commands/aws/account/info.rb,
lib/firespring_dev_commands/aws/codepipeline.rb,
lib/firespring_dev_commands/aws/cloudformation.rb,
lib/firespring_dev_commands/aws/cloudformation/parameters.rb

Overview

Class contains base aws constants

Defined Under Namespace

Classes: Account, Cloudformation, CodePipeline, Credentials, Login, Parameter, Profile, Route53, S3

Constant Summary collapse

CONFIG_DIR =

The config dir for the user’s AWS settings

"#{Dir.home}/.aws".freeze
DEFAULT_REGION =

The default region used if none has been configured in the AWS settings

'us-east-1'.freeze
DEFAULT_LOGIN_ROLE_NAME =

The default role name used if none has been configured when logging in

'ReadonlyAccessRole'.freeze

Class Method Summary collapse

Class Method Details

.each_page(client, query, params = {}) {|response| ... } ⇒ Object

Runs the query on the client with the parameters Yields each response page

Yields:

  • (response)


15
16
17
18
19
20
21
22
23
# File 'lib/firespring_dev_commands/aws.rb', line 15

def self.each_page(client, query, params = {})
  response = client.send(query, params)
  yield response

  while response.next_page?
    response = response.next_page
    yield response
  end
end