Created
August 7, 2014 17:27
-
-
Save RobertoSchneiders/84abe10778c16bda7c0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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