gsd-cli 0.1.35 → 0.1.36

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cli/install.rb +3 -1
  3. data/lib/cli.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2f3eb7ad1be41577bc7483210df0d32454c367d56e2389f684ebe2a672494ee
4
- data.tar.gz: 89bcf71071202ff0b36bab34b155a4ef9240643922850e769a139162a0a11e47
3
+ metadata.gz: a4417b24df4b4171f873c04ce91aac0a59b45992f28893ef8e68c91728b1eb1e
4
+ data.tar.gz: a18213aeaf377b85fc21e123ef833b2f0e36ee53020457b368a81c9805c16c51
5
5
  SHA512:
6
- metadata.gz: f4e3bcff9aa0c7c9cc13487f464acfdc1678c6eafb5dedd6c2cb9aebf6dc714f88038aaee5ea15a6495e0a469de5a66d61166f1c05f90723910734ee507f6d0b
7
- data.tar.gz: 15737cedad48325c090f33cfdda51451c0bdb1ad0e37cffa858b71da95175c85a12147900b76dd7b5bfe08a02a1d619d1aaa2f8f20e28f12b14bb98b81697e45
6
+ metadata.gz: bb8cdf33508f4f603f9864f516ed245c4fa2a7025df9ab94d882072c360e8e7ae5fb88a28b8947c31488218f48616ef044cba764ad3ee736be68bb8ec63d2dce
7
+ data.tar.gz: c23a618aa2c69e6b718562fd8b6777d563a655b048f0ba201a84293214fe70890654fb90b8cd33600a0f874273e3f1e16a95eb1c9c51affd4108fb3a6a2cd3fc
data/lib/cli/install.rb CHANGED
@@ -20,7 +20,7 @@ end
20
20
  def install(game, path, steam_user, steam_password)
21
21
  puts "Beginning installation process. This may take a while...".yellow
22
22
  install_path = if path.nil?
23
- puts "Install path was not provided: installing to /opt/#{game.name}".yellow
23
+ puts "Install path was not provided: defaulting to /opt/#{game.name}".yellow
24
24
  "/opt/#{game.name}"
25
25
  else
26
26
  path
@@ -30,6 +30,8 @@ def install(game, path, steam_user, steam_password)
30
30
  else
31
31
  "+login #{steam_user} #{steam_password}"
32
32
  end
33
+ system("rm -f #{"/tmp/#{@game.name}.service"}")
34
+ system("rm -f /etc/systemd/system/#{@game.name}.service")
33
35
  GameTemplate.new(game).install(install_path, steam_login)
34
36
  puts "Server installation & deployment complete!".green
35
37
  end
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, "0.1.35"
6
+ program :version, "0.1.36"
7
7
  program :description, "A cli tool to deploy & manage dedicated game servers on Linux"
8
8
 
9
9
  require "cli/install"
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.35
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egee