AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::RailsProvisioner::Views::InitStack

Inherits:
Aws::RailsProvisioner::View
  • Object
show all
Defined in:
lib/aws-rails-provisioner/views/init_stack.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ InitStack

For InitStack Generation

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



12
13
14
15
# File 'lib/aws-rails-provisioner/views/init_stack.rb', line 12

def initialize(options = {})
  @vpc_config = options[:vpc]
  @stack_prefix = options[:stack_prefix]
end

Instance Method Details

#packagesObject



25
26
27
# File 'lib/aws-rails-provisioner/views/init_stack.rb', line 25

def packages
  Aws::RailsProvisioner::Utils.to_pkgs(services)
end

#servicesObject



21
22
23
# File 'lib/aws-rails-provisioner/views/init_stack.rb', line 21

def services
  ['ec2', 'ecs']
end

#vpcObject



29
30
31
# File 'lib/aws-rails-provisioner/views/init_stack.rb', line 29

def vpc
  Aws::RailsProvisioner::Vpc.new(@vpc_config)
end