Class: Starbound
- Inherits:
-
Object
- Object
- Starbound
- Defined in:
- lib/servers/starbound.rb
Overview
A module to produce resources for a Starbound server
Instance Attribute Summary collapse
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize ⇒ Starbound
constructor
A new instance of Starbound.
- #launch(install_path) ⇒ Object
Constructor Details
#initialize ⇒ Starbound
Returns a new instance of Starbound.
4 5 6 7 |
# File 'lib/servers/starbound.rb', line 4 def initialize @name = "starbound" @app_id = "533830" end |
Instance Attribute Details
#app_id ⇒ Object (readonly)
Returns the value of attribute app_id.
3 4 5 |
# File 'lib/servers/starbound.rb', line 3 def app_id @app_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/servers/starbound.rb', line 3 def name @name end |
Instance Method Details
#launch(install_path) ⇒ Object
9 10 11 12 |
# File 'lib/servers/starbound.rb', line 9 def launch(install_path) "cd #{install_path}/linux && #{install_path}/linux/starbound_server" end |