gsd-cli 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cli.rb +2 -2
- data/lib/game_servers/minecraft_spigot.rb +4 -2
- data/lib/game_template.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac6e852e0012c221081a0141b7b7c9cbddf26b394292be5a2c3c3ae98a8e0187
|
|
4
|
+
data.tar.gz: 18bef063572764c06f655c09d95844870bfd8b637d50f2174a5236266141d57f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 926c28d60e796a6466241a5946a24935ec2dd0197511f8dee831a1f26807bd20c996c785f428af48ad16dd82b9b358826cf84219962595c075a2e4ce6f0837af
|
|
7
|
+
data.tar.gz: fa761f6b3beb537f8aebe48439b0005f9d059a63bb1c4fa4a12169058ccb38c4b0a93653ef62405ac59e637c05266fe72574a049eac34c45b1e6a2728e92f169
|
data/lib/cli.rb
CHANGED
|
@@ -31,7 +31,7 @@ end
|
|
|
31
31
|
@games = userdata
|
|
32
32
|
|
|
33
33
|
program :name, "gsd-cli"
|
|
34
|
-
program :version, "0.1.
|
|
34
|
+
program :version, "0.1.19"
|
|
35
35
|
program :description, "A cli tool to deploy & manage dedicated game servers on Linux"
|
|
36
36
|
|
|
37
37
|
command :install do |c|
|
|
@@ -61,7 +61,7 @@ command :run do |c|
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
command :update do |c|
|
|
64
|
-
c.syntax = "gsd
|
|
64
|
+
c.syntax = "gsd update [args] [options]"
|
|
65
65
|
c.summary = "Updates an installed dedicated game server."
|
|
66
66
|
c.description = "Updates an installed dedicated game server."
|
|
67
67
|
c.option "--path STRING", String, "Path that the game server will be update to."
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require "open-uri"
|
|
2
4
|
require "fileutils"
|
|
3
5
|
|
|
@@ -9,11 +11,11 @@ class MinecraftSpigot
|
|
|
9
11
|
@app_id = nil
|
|
10
12
|
end
|
|
11
13
|
|
|
12
|
-
def launch(install_path, version = "1.
|
|
14
|
+
def launch(install_path, version = "1.14")
|
|
13
15
|
"cd #{install_path} && java -Xms1G -Xmx2G -jar spigot-#{version}.jar --noconsole"
|
|
14
16
|
end
|
|
15
17
|
|
|
16
|
-
def install_server(install_path, version = "1.
|
|
18
|
+
def install_server(install_path, version = "1.14")
|
|
17
19
|
FileUtils.mkdir_p(install_path)
|
|
18
20
|
File.open("#{install_path}/BuildTools.jar", "wb") do |file|
|
|
19
21
|
file.write(open("https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar").read())
|
data/lib/game_template.rb
CHANGED
|
@@ -46,7 +46,7 @@ class GameTemplate
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def install(install_path, steamuser, steampassword, dev_mode)
|
|
49
|
-
ensure_delete_unit_file(install_path)
|
|
49
|
+
ensure_delete_unit_file(install_path) if install_path.nil? == false
|
|
50
50
|
if @game.app_id.nil?
|
|
51
51
|
@game.install_server(get_install_path(install_path))
|
|
52
52
|
else
|