Class: LumiaServer::Platform::Custom
- Inherits:
-
LumiaServer::Platform
- Object
- LumiaServer::Platform
- LumiaServer::Platform::Custom
- Defined in:
- lib/lumia-server/platform/custom.rb
Instance Attribute Summary
Attributes inherited from LumiaServer::Platform
#data, #id, #name, #provider, #server_yaml, #version
Instance Method Summary collapse
Methods inherited from LumiaServer::Platform
#initialize, #install, #install_platform, #needs_update, new
Constructor Details
This class inherits a constructor from LumiaServer::Platform
Instance Method Details
#build ⇒ Object
5 6 7 8 9 |
# File 'lib/lumia-server/platform/custom.rb', line 5 def build super file = File.join(@data.key?('file') ? @data['file'] : 'server.jar') IO.copy_stream(open(@data['url']), file) end |