Class: AwsCftTools::Client

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/aws_cft_tools/client.rb,
lib/aws_cft_tools/client/cft.rb,
lib/aws_cft_tools/client/ec2.rb,
lib/aws_cft_tools/client/base.rb,
lib/aws_cft_tools/client/templates.rb,
lib/aws_cft_tools/client/cft/stack_management.rb,
lib/aws_cft_tools/client/cft/changeset_management.rb

Overview

AWS Tools Client

A collection of higher-level business methods built on top of the AWS API.

Defined Under Namespace

Classes: Base, CFT, EC2, Templates

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Client

Create a new client instance.

Options are passed on to domain-specific client objects within the AwsCftTools::Client:: namespace.

Parameters:

  • options (Hash)

    client configuration

Options Hash (options):

  • :environment (String)

    Environment with which the client is concerned.

  • :parameter_dir (String)

    The location of parameter files within the project.

  • :profile (String)

    The profile to use from the shared credentials file.

  • :region (String)

    The AWS region in which to operate.

  • :role (String)

    The role that resources are attached to.

  • :root (Pathname)

    The location of the top-level directory of the project.

  • :template_dir (String)

    The location of tmeplate files within the project.



34
35
36
# File 'lib/aws_cft_tools/client.rb', line 34

def initialize(options)
  @client_options = options.merge(client: self)
end

Instance Method Details

#all_stacksObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#changes_on_stack_createObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#changes_on_stack_deleteObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#changes_on_stack_updateObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#create_stackObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#delete_stackObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#exportsObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#imagesObject



42
# File 'lib/aws_cft_tools/client.rb', line 42

def_delegators :ec2_client, :instances, :images

#instancesObject



42
# File 'lib/aws_cft_tools/client.rb', line 42

def_delegators :ec2_client, :instances, :images

#stacksObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack

#templatesObject



68
# File 'lib/aws_cft_tools/client.rb', line 68

def_delegators :template_client, :templates

#update_stackObject



62
63
64
# File 'lib/aws_cft_tools/client.rb', line 62

def_delegators :cft_client, :exports, :stacks, :create_stack, :update_stack, :all_stacks,
:changes_on_stack_update, :changes_on_stack_create, :changes_on_stack_delete,
:delete_stack