Class: LumiaServer::Platform::BungeeCord
- Inherits:
-
LumiaServer::Platform
- Object
- LumiaServer::Platform
- LumiaServer::Platform::BungeeCord
- Defined in:
- lib/lumia-server/platform/bungeecord.rb
Constant Summary collapse
- URL =
'https://ci.md-5.net/job/BungeeCord/lastStableBuild/artifact/bootstrap/target/BungeeCord.jar'
Instance Attribute Summary
Attributes inherited from LumiaServer::Platform
#data, #id, #name, #provider, #server_yaml, #version
Instance Method Summary collapse
-
#initialize(data, server_yaml) ⇒ BungeeCord
constructor
A new instance of BungeeCord.
- #install_platform ⇒ Object
Methods inherited from LumiaServer::Platform
Constructor Details
#initialize(data, server_yaml) ⇒ BungeeCord
Returns a new instance of BungeeCord.
7 8 9 10 |
# File 'lib/lumia-server/platform/bungeecord.rb', line 7 def initialize(data, server_yaml) super @name = 'BungeeCord' end |
Instance Method Details
#install_platform ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/lumia-server/platform/bungeecord.rb', line 12 def install_platform file = 'BungeeCord.jar' if provider.nil? IO.copy_stream(open(URL), File.join('build', file)) else provider.install('build', file) end end |