opswalrus 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -1
- data/lib/opswalrus/app.rb +5 -0
- data/lib/opswalrus/cli.rb +8 -1
- data/lib/opswalrus/version.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: 472ae5aafb306653a32149c08a481288237c6c524a3f72761e09ac9887a4c0f4
|
4
|
+
data.tar.gz: 449e723590784e10faf30bbbebb122d0ae00c6652e02559decc0cbbac0ba670f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 319c28870d5b1e91680e9aed29834df12c25dae3bbc6abeb0d54566f7d6a7662064dc8d54f7851d9d9ce7dc82d48c73a019abe58b384281e8b7c98ec5d252d99
|
7
|
+
data.tar.gz: 3e4a3d90ef1f30f29f4acb0acc8a34422e4f6f687f42fef3cba890e052b1d07848f38276b88d5c95f91be3d3e966c5b4a1e3f5c8e1faa8d31b1342dd8364c64e
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -10,12 +10,18 @@ You have two options:
|
|
10
10
|
|
11
11
|
## Rubygems install
|
12
12
|
|
13
|
+
```shell
|
14
|
+
gem install opswalrus
|
15
|
+
|
16
|
+
ops version
|
17
|
+
```
|
18
|
+
|
13
19
|
## Docker install
|
14
20
|
|
15
21
|
```shell
|
16
22
|
alias ops='docker run --rm -it -v $HOME/.ssh:/root/.ssh -v /var/run/docker.sock:/var/run/docker.sock -v ${PWD}/:/workdir ghcr.io/opswalrus/ops'
|
17
23
|
|
18
|
-
ops
|
24
|
+
ops version
|
19
25
|
```
|
20
26
|
|
21
27
|
# Examples
|
data/lib/opswalrus/app.rb
CHANGED
@@ -14,6 +14,7 @@ require_relative "hosts_file"
|
|
14
14
|
require_relative "operation_runner"
|
15
15
|
require_relative "bundler"
|
16
16
|
require_relative "package_file"
|
17
|
+
require_relative "version"
|
17
18
|
|
18
19
|
|
19
20
|
module OpsWalrus
|
@@ -336,6 +337,10 @@ module OpsWalrus
|
|
336
337
|
selected_hosts.sort_by(&:to_s)
|
337
338
|
end
|
338
339
|
|
340
|
+
def print_version
|
341
|
+
puts VERSION
|
342
|
+
end
|
343
|
+
|
339
344
|
def unzip(zip_bundle_file = nil, output_dir = nil)
|
340
345
|
bundler.unzip(zip_bundle_file, output_dir)
|
341
346
|
end
|
data/lib/opswalrus/cli.rb
CHANGED
@@ -28,12 +28,19 @@ module OpsWalrus
|
|
28
28
|
desc 'Be verbose'
|
29
29
|
switch [:v, :verbose]
|
30
30
|
|
31
|
-
desc '
|
31
|
+
desc 'Turn on debug mode'
|
32
32
|
switch [:d, :debug]
|
33
33
|
|
34
34
|
flag [:h, :hosts], multiple: true, desc: "Specify the hosts.yaml file"
|
35
35
|
flag [:t, :tags], multiple: true, desc: "Specify a set of tags to filter the hosts by"
|
36
36
|
|
37
|
+
desc 'Print version'
|
38
|
+
command :version do |c|
|
39
|
+
c.action do |global_options, options, args|
|
40
|
+
$app.print_version
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
37
44
|
desc 'Report on the host inventory'
|
38
45
|
long_desc 'Report on the host inventory'
|
39
46
|
command :inventory do |c|
|
data/lib/opswalrus/version.rb
CHANGED