Class: TerraBoi::TfEcrGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/terra_boi/tf_ecr_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#application_nameObject

Returns the value of attribute application_name.



5
6
7
# File 'lib/generators/terra_boi/tf_ecr_generator.rb', line 5

def application_name
  @application_name
end

Instance Method Details

#create_ecrObject



21
22
23
24
25
26
# File 'lib/generators/terra_boi/tf_ecr_generator.rb', line 21

def create_ecr
	template "ecr/ecs_role.tf.erb", "terraform/ecr/ecs_role.tf"
	template "ecr/main.tf.erb", "terraform/ecr/main.tf"
	template "ecr/output.tf.erb", "terraform/ecr/output.tf"
	template "ecr/var.tf.erb", "terraform/ecr/var.tf"
end

#initObject



16
17
18
19
# File 'lib/generators/terra_boi/tf_ecr_generator.rb', line 16

def init
	# defined in lib/generators/extensions
	self.application_name = generate_application_name
end