lib/game_template.rb
# Installs or Updates a dedicated game server via Steamcmd
Installs or Updates a dedicated game server via Steamcmd
Installs or Updates a dedicated game server via Steamcmd
def install_steam_server(install_path, steam_login)
    abort("STEAMCMD does not appear to be installed! Aborting...".red) if `which steamcmd`.empty?
    system("$(which steamcmd) #{steam_login} +quit")
    system("$(which steamcmd) #{steam_login} +force_install_dir #{install_path} +app_update #{@game.app_id} validate +quit")
  end
def install_steam_server ( install_path , steam_login ) abort ( "STEAMCMD does not appear to be installed! Aborting..." . red ) if ` which steamcmd ` . empty? system ( "$(which steamcmd) #{steam_login} +quit" ) system ( "$(which steamcmd) #{steam_login} +force_install_dir #{install_path} +app_update #{@game.app_id} validate +quit" ) end
Installs or Updates a dedicated game server via Steamcmd
Installs or Updates a dedicated game server via Steamcmd
install_path
steam_login