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: install_generator.rb
    path of file: ./repos/breakfast/lib/generators/breakfast
    
    the code of the file until where you have to start completion: require "rails/generators"

module Breakfast
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)
      NODE_VERSION = Gem::Version.new("4.1.0")

      def install
        if node_prerequisites_installed?
          create_brunch_config
          create_package_json if using_rails_5_dot_0?
          instal
    
      def install
        if node_prerequisites_installed?
          create_brunch_config
          create_package_json if using_rails_5_dot_0?
          install_required_packages
          create_directory_structure
          create_app_js_file
          create_app_scss_file
          create_gitkeep_files
          add_node_modules_to_gitignore

          puts <<-SUCCESS.strip_heredoc

            ---> BREAKFAST INSTALLED SUCCESSFULLY
            ---> See https://github.com/devlocker/breakfast for documentation and examples.

          SUCCESS
        else
          puts <<-ERROR.strip_heredoc

            ---> ERROR - MISSING NODE & YARN

            ---> Node version >= #{NODE_VERSION} & yarn are required to run Breakfast.
            ---> Please install them before attempting to continue.
            ---> https://nodejs.org
            ---> https://yarnpkg.com/docs/install/

          ERROR
        end
      end