web47core 3.2.3.50 → 3.2.3.51

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6919700b0f69654fb86470e9ff727198e1e5e8da157240eb58f869597c95b497
4
- data.tar.gz: eaa6281463cd954391791d53eeaee3b21875764bed20f554886de54d3209d7cd
3
+ metadata.gz: 683f85833d91a9351863dac2996336e09fe452e7084372872c124b77e3e29781
4
+ data.tar.gz: 65e1da14f9427778e084a916d2466f26b3d116f9e5c7b602cdbe744d35e12a91
5
5
  SHA512:
6
- metadata.gz: 7657edbc6f8674bee74604a85aa58bc1e61e5562052ad096b20beaeff701345820e801f6af00f589a9b9b6dddd669e6257767e1fca7d05b9b4cd8bbdf161cda1
7
- data.tar.gz: c85f3e3a93c533fa1f5863cf48204dc933e6a81ebf1c7a907d4a60a9a4ccea73f3562b27cf7eb9fcdade153abffa3c34f0cb61df84f7a7bbb7b2492a73f49479
6
+ metadata.gz: eb912939e26c729a3f869f101e0b79b7a22a69cb476ba4bed2b7d8dac1fb5506f7439937845a25d7b63b6f5560635d1230bfc88c54c7db3a1f95f0796c572706
7
+ data.tar.gz: 1595561313f0b17963e0a7acdbf3f15834faae4e1a990b87d1520eb8afc4bf7dece91c6f03e051d6d9f5d413fd996a0ed05b005aedc49338b4b46475d10ace28
@@ -326,11 +326,13 @@ class CommandJob
326
326
  run_command "unzip #{file_path}", to_dir, error_texts: 'unzip:'
327
327
  end
328
328
 
329
- #
330
- # Run the command capturing the command output and any standard error to the log.
331
- #
329
+ # @abstract Run the command capturing the command output and any standard error to the log.
330
+ # @param command [String|Array] The command that needs to be run
331
+ # @param dir [String] The directory where the command needs to be run
332
+ # @param options [Hash] Options for the command
333
+ # @return [String] The output of the command
332
334
  def run_command(command, dir = '/tmp', options = {})
333
- command = command.join(' ') if command.is_a?(Array)
335
+ command = Shellwords.shelljoin(command) if command.is_a?(Array)
334
336
  output, status = Open3.capture2e(command, chdir: dir)
335
337
  output = mask_keywords(output, options[:mask_texts])
336
338
  output = status.success? ? 'Success' : 'No output' if output.blank?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.3.50'
4
+ VERSION = '3.2.3.51'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3.50
4
+ version: 3.2.3.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder