astevens / factorio-mod-updater

Update mods an Factorio headless server
MIT License
20 stars 5 forks source link

uninitialized constant ModService::Tempfile (NameError) #4

Open frgnca opened 6 years ago

frgnca commented 6 years ago

While running

$ sudo /opt/factorio-mod-updater/factorio-mod-updater

here was the output

Checking Factorissimo2, ScorchedEarth
Connecting to mods.factorio.com
Factorissimo2 by MagmaMcFry 2.2.3
        Installing
/opt/factorio-mod-updater/factorio-mod-updater:24:in `download': uninitialized constant ModService::Tempfile (NameError)
        from /opt/factorio-mod-updater/factorio-mod-updater:85:in `block in <main>'
        from /opt/factorio-mod-updater/factorio-mod-updater:76:in `each'
        from /opt/factorio-mod-updater/factorio-mod-updater:76:in `<main>'

Adding the following line to factorio-mod-updater seemed to solve the problem for me

require 'tempfile'