gsd-cli 0.1.11 → 0.1.12
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 +8 -2
- 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: 238363efb84994a69bb5991f99f746bab3ef19fe05a10db98f91610a213f160b
|
4
|
+
data.tar.gz: 4591e03ab4f62ddb28eed763fb5b9acac6210a85f37a8c968a2443866241d579
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20d1b2ee0668301ae893573e7cefa6712e35393fad0a2595c98355ea1e6ddd73ac879d4f6e2611d75943eaf53416b18f2d67a1a15773c5caceddc016539f9f06
|
7
|
+
data.tar.gz: c637f69e10019547e83672d7b285fc5ebbc0106924526246833d170dd420a47acd4489ff225a0cde13172405b52731b4d0fb469aa4dac068683c577ee59a43b1
|
data/lib/cli.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "yaml"
|
2
|
+
require "colorize"
|
1
3
|
require "commander/import"
|
2
4
|
require "game_template"
|
3
5
|
require "game_servers/gmod"
|
@@ -27,7 +29,7 @@ end
|
|
27
29
|
@games = userdata
|
28
30
|
|
29
31
|
program :name, "gsd-cli"
|
30
|
-
program :version, "0.1.
|
32
|
+
program :version, "0.1.12"
|
31
33
|
program :description, "A cli tool to deploy & manage dedicated game servers on Linux"
|
32
34
|
|
33
35
|
command :install do |c|
|
@@ -123,7 +125,11 @@ command :list do |c|
|
|
123
125
|
c.summary = "Provides a list of supported dedicated game servers."
|
124
126
|
c.description = "Provides a list of available dedicated game servers and their status."
|
125
127
|
c.action do
|
126
|
-
puts "
|
128
|
+
puts "The following games are currently supported by gsd:".yellow.bold
|
129
|
+
YAML.safe_load(File.read("#{File.dirname(__FILE__)}/../conf/supported_games.yml"))["games"]
|
130
|
+
.each do |game|
|
131
|
+
puts game.light_blue
|
132
|
+
end
|
127
133
|
end
|
128
134
|
end
|
129
135
|
|