Class: Starbound

Inherits:
Object
  • Object
show all
Defined in:
lib/servers/starbound.rb

Overview

A module to produce resources for a Starbound server

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStarbound

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_idObject (readonly)

Returns the value of attribute app_id.



3
4
5
# File 'lib/servers/starbound.rb', line 3

def app_id
  @app_id
end

#nameObject (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