def require_module_to_base
      file = File.open("#{@target_dir}/app/apis/#{@project_name}/base.rb", "r+")
      file.each do |line|
        while line == "require_relative './modules/#{@module_name}_apis'\n" do
          $stdout.puts "\e[33mModule already mounted.\e[0m"
          return true
        end
      end

      File.open("#{@target_dir}/app/apis/#{@project_name}/base.rb", "r+") do |f|	
        pos = f.pos		
        rest = f.read
        f.seek pos
        f.write("require_relative './modules/") 
        f.write(@module_name)
        f.write("_apis'\n")
        f.write(rest)
      end
      return false
    end
def require_module_to_base
      file = File.open("#{@target_dir}/app/apis/#{@project_name}/base.rb", "r+")
      file.each do |line|
        while line == "require_relative './modules/#{@module_name}_apis'\n" do
          $stdout.puts "\e[33mModule already mounted.\e[0m"
          return true
        end
      end

      File.open("#{@target_dir}/app/apis/#{@project_name}/base.rb", "r+") do |f|	
        pos = f.pos		
        rest = f.read
        f.seek pos
        f.write("require_relative './modules/") 
        f.write(@module_name)
        f.write("_apis'\n")
        f.write(rest)
      end
      return false
    end
=begin
Checks whether the module is already mounted and if not then configures for mounting.
=end