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: plugin_generator.rb
    path of file: ./repos/manageiq/lib/generators/manageiq/plugin
    
    the code of the file until where you have to start completion: module ManageIQ
  class PluginGenerator < Rails::Generators::NamedBase
    source_root File.expand_path('templates', __dir__)
    source_paths << source_root

    remove_class_option :skip_namespace

    class_option :path, :type => :string, :default => 'plugins',
                 :desc => "Create plugin at given path"
    class_option :js, :type => :boolean, :default => false,
                 :desc => "Enable JavaScript in the plugin"

    def self.namespace
      # Thor has its own version of snake_case, which doesn't account for acronyms
      name.underscore.tr("/", ":").sub(/_generator$/, "")
    end

    def create_plugin_dir
      base_path = File.expand_path(options[:path], destination_root)
      self.destination_root = File.expand_path(plugin_name, base_path)
      empty_directory "."
      git :init => destination_root unless Dir.exist?(File.joi
    
    def self.namespace
      # Thor has its own version of snake_case, which doesn't account for acronyms
      name.underscore.tr("/", ":").sub(/_generator$/, "")
    end

    def create_plugin_dir
      base_path = File.expand_path(options[:path], destination_root)
      self.destination_root = File.expand_path(plugin_name, base_path)
      empty_directory "."
      git :init => destination_root unless Dir.exist?(File.join(destination_root, ".git"))
      FileUtils.cd(destination_root)
    end

    def create_plugin_files
      template "%plugin_name%.gemspec"
      template ".codeclimate.yml"
      template ".gitignore"
      template ".rspec"
      template ".rspec_ci"
      template ".rubocop.yml"
      template ".rubocop_cc.yml"
      template ".rubocop_local.yml", :skip => true
      template ".github/workflows/ci.yaml"
      template ".whitesource"
      template ".yamllint"
      template "Gemfile"
      template "LICENSE.txt"
      template "Rakefile"
      template "README.md"
      template "bin/rails"
      template "bin/setup"
      template "bin/update"
      template "bin/before_install"
      chmod "bin", 0o755 & ~File.umask, :verbose => false
      empty_directory_with_keep_file "bundler.d"
      template "config/secrets.defaults.yml"
      template "config/settings.yml"
      template "lib/%plugin_path%.rb"
      template "lib/%plugin_path%/engine.rb"
      template "lib/%plugin_path%/version.rb"
      template "lib/tasks/README.md"
      template "lib/tasks_private/spec.rake"
      empty_directory_with_keep_file "locale"
      empty_directory "spec/factories"
      empty_directory "spec/support"
      template "spec/spec_helper.rb"

      if options[:js]
        gitignore = <<~GITIGNORE

          /node_modules/
          /.pnp.*
          /.yarn/*
          !/.yarn/patches
          !/.yarn/plugins
          !/.yarn/releases
          !/.yarn/sdks
          !/.yarn/versions
        GITIGNORE

        inject_into_file ".gitignore", gitignore, :after => "/spec/manageiq\n"
        template ".yarnrc.yml"
        template ".yarn/releases/yarn-#{yarn_version}.cjs"
        template "package.json"
        template "yarn.lock"
      end
    end