gsd-cli 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11c2c7831fe898872b15974986dd2e565b8a9a335b3d50d0b1c851eb911c62a4
4
- data.tar.gz: 9b1743e261445441fcca3949ab4c46fafeb4035d566c21871b447bb68e7e7252
3
+ metadata.gz: 7d86c0503122de64ad654e63c4825249b9783338c7de600023d8af59ab981e8c
4
+ data.tar.gz: e1a357816f56b15ab2a13e5d201b3b21da81bad2f6f83ea6f26be16c5e0af95d
5
5
  SHA512:
6
- metadata.gz: a93926a7b5cdd405f64a69ca0c6541e8c44b8c3dc9a83e31a330d03b368b94a4474a12f1e692f3819b725e7368ac20be45d1216cbcc389ed963513e0aae7f771
7
- data.tar.gz: 765e973d620924be212e58fa4da784763bd00e5a40175eb95c276e0930e616a8aca576466461b018f6544a147c71e45d24c2fd42b1be71fe892c3e4262cc9e62
6
+ metadata.gz: a0f183c4dbd21e58b32656fb2903b7549d9285e51332bba7e1575f894f14ae04d5c87c63896aca1dd1f2bea3ccd99776e7402d6f77d692b50bd1c7ce6d77eb9d
7
+ data.tar.gz: 789b6f866ffb0110a5d694ea3c726e6e5fb543343dc453c5ba1a950d929ce15a2fd97ba4440019854e211d7e03cbf4645c47b7c826ff2b4a4461126dc462f332
data/lib/cli.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require "commander/import"
4
4
 
5
5
  program :name, "gsd-cli"
6
- program :version, "1.1.2"
6
+ program :version, "1.1.3"
7
7
  program :description, "A cli tool to deploy & manage dedicated game servers on Linux"
8
8
 
9
9
  require "cli/install"
@@ -4,7 +4,7 @@ class GarrysMod
4
4
  def initialize
5
5
  @name = "gmod"
6
6
  @app_id = "4020"
7
- @friendly_name = "Garry's Mod" #TODO: Add friendly name to all server objects
7
+ @friendly_name = "Garry's Mod"
8
8
  end
9
9
 
10
10
  def launch(install_path, map = "gm_construct", players = 16, collection_id = "1838303608")
@@ -22,6 +22,6 @@ class SevenDays
22
22
  end
23
23
 
24
24
  def post_install(install_path)
25
- system("touch #{install_path}/server.log") # TODO: This won't scale
25
+ system("touch #{install_path}/server.log")
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gsd-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egee
@@ -53,15 +53,11 @@ files:
53
53
  - lib/cli/update.rb
54
54
  - lib/game_template.rb
55
55
  - lib/helpers.rb
56
- - lib/servers/ace_of_spades.rb
57
56
  - lib/servers/gmod.rb
58
- - lib/servers/minecraft_ftb.rb
59
57
  - lib/servers/minecraft_spigot.rb
60
58
  - lib/servers/rust.rb
61
59
  - lib/servers/seven_days.rb
62
- - lib/servers/starbound.rb
63
60
  - lib/servers/team_fortress.rb
64
- - lib/servers/terraria.rb
65
61
  homepage: https://github.com/Egeeio/gsd-cli
66
62
  licenses:
67
63
  - MIT
@@ -1,14 +0,0 @@
1
- # A class for Feed The Beast Minecraft Server
2
- class AceOfSpades
3
- attr_reader :name, :app_id
4
- def initialize
5
- @name = "aos"
6
- @app_id = nil
7
- end
8
-
9
- def launch(install_path)
10
- end
11
-
12
- def install_server(install_path)
13
- end
14
- end
@@ -1,23 +0,0 @@
1
- # A class for Feed The Beast Minecraft Server
2
- class MinecraftFtb
3
- attr_reader :name, :app_id
4
- def initialize
5
- @name = "ftb"
6
- @app_id = nil
7
- end
8
-
9
- def launch(install_path)
10
- "cd #{install_path} && /bin/bash #{install_path}/ServerStart.sh"
11
- end
12
-
13
- def install_server(install_path)
14
- system("wget https://media.forgecdn.net/files/2658/240/FTBRevelationServer_2.7.0.zip -O /tmp/server.zip")
15
- system("mkdir #{install_path}")
16
- system("unzip /tmp/server.zip -d#{install_path}")
17
- system("chmod +x #{install_path}/ServerStart.sh")
18
- system("chmod +x #{install_path}/FTBInstall.sh")
19
- system("/bin/bash #{install_path}/FTBInstall.sh")
20
- system("rm #{install_path}/eula.txt")
21
- system("echo eula=true > #{install_path}/eula.txt")
22
- end
23
- end
@@ -1,13 +0,0 @@
1
- # A module to produce resources for a Starbound server
2
- class Starbound
3
- attr_reader :name, :app_id
4
- def initialize
5
- @name = "starbound"
6
- @app_id = "533830"
7
- end
8
-
9
- def launch(install_path)
10
- "cd #{install_path}/linux &&
11
- #{install_path}/linux/starbound_server"
12
- end
13
- end
@@ -1,14 +0,0 @@
1
- # A class for Feed The Beast Minecraft Server
2
- class Terraria
3
- attr_reader :name, :app_id
4
- def initialize
5
- @name = "terraria"
6
- @app_id = nil
7
- end
8
-
9
- def launch(install_path)
10
- end
11
-
12
- def install_server(install_path)
13
- end
14
- end