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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97d8c56ff040eeca8da82c47442a507247e952faec4077ea87293be581234c49
4
- data.tar.gz: d9fb2905bcb900acaea9c85ee74af89b01b2200594d05d043da3b1decbb08ff8
3
+ metadata.gz: 472ae5aafb306653a32149c08a481288237c6c524a3f72761e09ac9887a4c0f4
4
+ data.tar.gz: 449e723590784e10faf30bbbebb122d0ae00c6652e02559decc0cbbac0ba670f
5
5
  SHA512:
6
- metadata.gz: 3268ce43c666de5dd7923286d0c43dce2eac82b0632665b2edd2e77675beab4efb5444b49afccde0e8940f140480750776fe1618cc78c436ff89aa3c864e1820
7
- data.tar.gz: bf341b62f93981af7f74c4f9195ac36b30eeaf53b525a64b96ebc9921c0484fb53c9f21304587b7adb3da3e9cb057c6cf23c9f265e89e31d3fe043575c77f103
6
+ metadata.gz: 319c28870d5b1e91680e9aed29834df12c25dae3bbc6abeb0d54566f7d6a7662064dc8d54f7851d9d9ce7dc82d48c73a019abe58b384281e8b7c98ec5d252d99
7
+ data.tar.gz: 3e4a3d90ef1f30f29f4acb0acc8a34422e4f6f687f42fef3cba890e052b1d07848f38276b88d5c95f91be3d3e966c5b4a1e3f5c8e1faa8d31b1342dd8364c64e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.9)
4
+ opswalrus (1.0.10)
5
5
  bcrypt_pbkdf (~> 1.1)
6
6
  citrus (~> 3.0)
7
7
  ed25519 (~> 1.3)
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 --version
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 'Debug'
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|
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opswalrus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis