Class: TerraBoi::TfEcrGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- TerraBoi::TfEcrGenerator
- Defined in:
- lib/generators/terra_boi/tf_ecr_generator.rb
Instance Attribute Summary collapse
-
#application_name ⇒ Object
Returns the value of attribute application_name.
Instance Method Summary collapse
Instance Attribute Details
#application_name ⇒ Object
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_ecr ⇒ Object
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 |
#init ⇒ Object
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 |