class SevenDays
Create a 7 Days to Die server
Attributes
app_id[R]
name[R]
Public Class Methods
new()
click to toggle source
# File lib/servers/seven_days.rb, line 6 def initialize @name = "sdtd" @app_id = "294420" end
Public Instance Methods
launch(install_path)
click to toggle source
# File lib/servers/seven_days.rb, line 11 def launch(install_path) "cd #{install_path} && export LD_LIBRARY_PATH=. && #{install_path}/7DaysToDieServer.x86_64 \ -logfile #{install_path}/server.log \ -quit \ -batchmode \ -nographics \ -dedicated \ -configfile=#{install_path}/serverconfig.xml & \ /usr/bin/tail -f #{install_path}/server.log" end
post_install(install_path)
click to toggle source
# File lib/servers/seven_days.rb, line 24 def post_install(install_path) system("touch #{install_path}/server.log") end