def generate name
      print_cli_and_rails_engine_option_error && return if options.cli? && options.engine?

      say_status :info, "Generating gem...", :green

      setup_configuration name: name, options: options.to_h
      self.class.generators.each { |generator| generator.run self, configuration: configuration }

      say_status :info, "Gem generation finished.", :green
    end
def generate name
      print_cli_and_rails_engine_option_error && return if options.cli? && options.engine?

      say_status :info, "Generating gem...", :green

      setup_configuration name: name, options: options.to_h
      self.class.generators.each { |generator| generator.run self, configuration: configuration }

      say_status :info, "Gem generation finished.", :green
    end
rubocop:disable Metrics/AbcSize
 :reek:TooManyStatements