class Rust
Create a Rust
server
Attributes
app_id[R]
name[R]
Public Class Methods
new()
click to toggle source
# File lib/servers/rust.rb, line 4 def initialize @name = "rust" @app_id = "258550" end
Public Instance Methods
launch(install_path, password = "_", ip = "0.0.0.0", port = "28015")
click to toggle source
# File lib/servers/rust.rb, line 9 def launch(install_path, password = "_", ip = "0.0.0.0", port = "28015") "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:#{install_path}/RustDedicated_Data/Plugins/x86_64 && cd #{install_path} && ./RustDedicated +server.ip #{ip} +server.port #{port} +server.identity rust +rcon.web 1 \ +rcon.ip #{ip} \ +rcon.port 28016 \ +rcon.password #{password}" end