Class: LumiaServer::Platform::BungeeCord

Inherits:
LumiaServer::Platform show all
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

Methods inherited from LumiaServer::Platform

#install, #needs_update, new

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_platformObject



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