initialize

in lib/aws-rails-provisioner/views/pipeline_stack.rb [26:46]


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

        @pipeline_name = options[:pipeline_name] || "#{@stack_prefix}Pipeline"
        @source_repo = options[:source_repo] || _extract_repo_name(options[:source_path])
        @source_description = options[:source_description] || "created by aws-rails-provisioner with AWS CDK for #{@stack_prefix}"

        @build_config = options[:build] || {}
        unless @build_config[:project_name]
          @build_config[:project_name] = "#{@stack_prefix}ImageBuild"
        end

        @skip_migration = options[:skip_migration] || false
        unless @skip_migration
          @migration_config = options[:migration] || {}
          unless @migration_config[:project_name]
            @migration_config[:project_name] = "#{@stack_prefix}DBMigration"
          end
        end
      end