simp-beaker-helpers 1.15.2 → 1.16.1

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: 30ef05fd3ec301d3aa104b886c6e3ed8946dc6cecd0cabf3177191425eca6e1e
4
- data.tar.gz: 717e4661e75865f9be5d623b7609aec88a1791fa4ab5bf772d63773b77da30ab
3
+ metadata.gz: f51c1bc0d8da06da51c0d257154c71b6997477e945d0af0c3328db47d123d88a
4
+ data.tar.gz: 03eca2caea8a6aa16a6ec65a4fa8a91f47c35d2f15726b099545c57bc3be8b9d
5
5
  SHA512:
6
- metadata.gz: f971e19851625ec8d4c4db64b7458a50b144ffc103e20b0649b6b4e3c3497a46076b42abf5253bb2d82d5d41c43b82acbe84699e234c489605a7cbd2f6299444
7
- data.tar.gz: 8e33acde2f3be6e75b52e5884eb48afce050a5d585bb34d73a1b6d782cbf2212e169a5d54c810fce36876e8d5259b49488d53829190c30af6f5e3ae44186afad
6
+ metadata.gz: '088eaba36bda201c0703fddc83a98620f54a7743b8b1d8b1bdf662d776a2e2eab7fc7c19d98ff5ece42ab88731a7f2313ac648f80483d2d5699b25e9e2cdbd92'
7
+ data.tar.gz: 771501fb770aef3615337e7c89252fd44ade40e0ea5c1b9d5b660d29f510265009badc23ac1229a9610839b3cb3149248945d38f17673c2a7eea3a6ec9b8abc8
@@ -1,3 +1,9 @@
1
+ ### 1.16.1 / 2019-09-25
2
+ * Remove debugging pry that was accidentally left in
3
+
4
+ ### 1.16.0 / 2019-09-23
5
+ * Added a sosreport function to gather SOS Reports from EL systems
6
+
1
7
  ### 1.15.2 / 2019-09-13
2
8
  * Fix an issue where the inspec reports were not processed properly
3
9
 
@@ -553,6 +553,19 @@ module Simp::BeakerHelpers
553
553
  end
554
554
  end
555
555
 
556
+ def sosreport(sut, dest='sosreports')
557
+ sut.install_package('sos')
558
+ on(sut, 'sosreport --batch')
559
+
560
+ files = on(sut, 'ls /var/tmp/sosreport* /tmp/sosreport* 2>/dev/null', :accept_all_exit_codes => true).output.lines.map(&:strip)
561
+
562
+ FileUtils.mkdir_p(dest)
563
+
564
+ files.each do |file|
565
+ scp_from(sut, file, File.absolute_path(dest))
566
+ end
567
+ end
568
+
556
569
  def rhel_repo_enable(sut, repos)
557
570
  Array(repos).each do |repo|
558
571
  on(sut, %{subscription-manager repos --enable #{repo}})
@@ -187,9 +187,6 @@ module Simp::BeakerHelpers
187
187
  end
188
188
 
189
189
  if !profiles || profiles.empty?
190
- require 'pry'
191
- binding.pry
192
-
193
190
  fail("Error: Could not find 'profiles' in the passed results")
194
191
  end
195
192
 
@@ -1,5 +1,5 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.15.2'
4
+ VERSION = '1.16.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-beaker-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.2
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-19 00:00:00.000000000 Z
12
+ date: 2019-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker