class TerraBoi::TfEnvGenerator
Constants
- TEMPLATES
Attributes
application_name[RW]
class_options[RW]
Public Instance Methods
create_ecs()
click to toggle source
# File lib/generators/terra_boi/tf_env_generator.rb, line 42 def create_ecs class_options[:envs].each do |env| TEMPLATES.each do |dir, file_arr| file_arr.each do |filename| template "env/#{dir}/#{filename}.erb", "terraform/#{env}/#{dir}/#{filename}", { env: env, } end end end end
init()
click to toggle source
# File lib/generators/terra_boi/tf_env_generator.rb, line 36 def init # defined in lib/generators/extensions self.application_name = generate_application_name separators: false self.class_options = options end