gsd-cli 0.1.25 → 0.1.26

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1af8031feaa7d0ae2cf8c940a13c01fd30b5a172c4e41f49ae9e498347d5de5a
4
- data.tar.gz: f25529e027e7e3fccbb7bb556f0e5f01a9340b92428dd2f157bacbd00b82bc41
3
+ metadata.gz: 1b292d3b322cdd58ff4d8904308fd10e77601c13b77946ecbf3b81b4bdb7cd98
4
+ data.tar.gz: 31c44941458dbf36079f6b7bc0bc048a42305334e9b538ebd35796ea5098d935
5
5
  SHA512:
6
- metadata.gz: 5b5bb33b9e517db3c00e198f2f9a03eec07820060450baa9cef70b51e526e93c0c36e51fc06d76be876bdd06cda16861d6b42df7c76f6d55cb478a3f191a1a6b
7
- data.tar.gz: 85a572c4227f9f8971ac638fc81b8c18707f57174b98a312085fa14648e2860e494f0151f67a6fd520e286570194e23c85ee4d4e7e6944f7db349dc00d1bc7a1
6
+ metadata.gz: 124367a58bec77782ab942a01d63a954498a106e087fa4c3eaa8ff68194eca429f1f032e8eecd800cf00ad99838a4c981a5738322e57b497554024515d0d16c4
7
+ data.tar.gz: fad9f7cb8c142798ab17887df751736e8f8ce916137a30d40b27d448532ad9837512aa5c60426f91261d5d52881664273ddc5695e1039d2cddc357f558b9339c
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.25"
34
+ program :version, "0.1.26"
35
35
  program :description, "A cli tool to deploy & manage dedicated game servers on Linux"
36
36
 
37
37
  command :install do |c|
data/lib/game_template.rb CHANGED
@@ -52,6 +52,7 @@ class GameTemplate
52
52
  else
53
53
  install_steam_server(install_path, steamuser, steampassword)
54
54
  end
55
+ @game.post_install(install_path) if defined? @game.post_install
55
56
  cli_path = `which gsd-cli`.strip()
56
57
  create_unit_file(cli_path, install_path)
57
58
  end
@@ -76,7 +77,7 @@ class GameTemplate
76
77
  abort("STEAMCMD does not appear to be installed! Aborting...".red) if `which steamcmd`.empty?
77
78
  system("$(which steamcmd) +login anonymous +quit")
78
79
  system("$(which steamcmd) #{login} +force_install_dir #{install_path} +app_update #{@game.app_id} validate +quit")
79
- @game.post_install(install_path) if defined? @game.post_install
80
+ # @game.post_install(install_path) if defined? @game.post_install
80
81
  end
81
82
 
82
83
  def get_install_path(path)
@@ -24,7 +24,7 @@ class MinecraftSpigot
24
24
  end
25
25
 
26
26
  def post_install(install_path)
27
- system("rm #{install_path}/eula.txt")
27
+ system("rm -f #{install_path}/eula.txt")
28
28
  system("touch #{install_path}/eula.txt")
29
29
  system("echo 'eula=true' >> #{install_path}/eula.txt")
30
30
  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: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egee