def unmount_module
      path = "#{@target_dir}/app/apis/#{@project_name}"
      temp_file = "#{path}/tmp.rb"
      source = "#{path}/base.rb"
      delete_file = "#{path}/modules/#{@module_name}_apis.rb"
      
      File.open(temp_file, "w") do |out_file|
        File.foreach(source) do |line|
          unless line == "require_relative './modules/#{@module_name}_apis'\n"
            out_file.puts line unless line == "\t\tmount #{@module_class}\n"
          end
        end
        FileUtils.mv(temp_file, source)
      end
      
      if File.exists?(delete_file)
        FileUtils.rm(delete_file) 
        $stdout.puts "\e[1;35m\tunmounted\e[0m\t#{@module_class}" 
        $stdout.puts "\e[1;31m\tdelete\e[0m\t\tapp/apis/#{@project_name}/modules/#{@module_name}_apis.rb" 
      else
        $stdout.puts "\e[33mModule already unmounted.\e[0m"
      end
    end
def unmount_module
      path = "#{@target_dir}/app/apis/#{@project_name}"
      temp_file = "#{path}/tmp.rb"
      source = "#{path}/base.rb"
      delete_file = "#{path}/modules/#{@module_name}_apis.rb"
      
      File.open(temp_file, "w") do |out_file|
        File.foreach(source) do |line|
          unless line == "require_relative './modules/#{@module_name}_apis'\n"
            out_file.puts line unless line == "\t\tmount #{@module_class}\n"
          end
        end
        FileUtils.mv(temp_file, source)
      end
      
      if File.exists?(delete_file)
        FileUtils.rm(delete_file) 
        $stdout.puts "\e[1;35m\tunmounted\e[0m\t#{@module_class}" 
        $stdout.puts "\e[1;31m\tdelete\e[0m\t\tapp/apis/#{@project_name}/modules/#{@module_name}_apis.rb" 
      else
        $stdout.puts "\e[33mModule already unmounted.\e[0m"
      end
    end
=begin
Unmounts the modules by removing the respective module files.
=end