Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'inifile'
module Helper
def obter_porta_instalada(nome)
ini = IniFile.load("c:\\Monde\\Servidor-#{nome}\\bin\\MondeServer.ini")
if ini.has_section? 'porta'
return ini['porta']
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.