You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: eject_generator.rb
    path of file: ./repos/avo/lib/generators/avo
    
    the code of the file until where you have to start completion: require_relative "base_generator"

module Generators
  module Avo
    cla
    
        def eject_field_components
          # Check if the field exists
          field_path = "lib/avo/fields/#{options["field-components"]}_field.rb"
          return say("Failed to find the `#{options["field-components"]}` field.", :yellow) if !path_exists?(field_path)

          # Eject single component if view is specified
          if options[:view].present?
            return eject_component "Avo::Fields::#{options["field-components"].camelize}Field::#{options[:view].camelize}Component"
          end