summaryrefslogtreecommitdiff
path: root/lib/license/finder/ext/shared_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/license/finder/ext/shared_helpers.rb')
-rw-r--r--lib/license/finder/ext/shared_helpers.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/license/finder/ext/shared_helpers.rb b/lib/license/finder/ext/shared_helpers.rb
index b6b6fcd..cee79ab 100644
--- a/lib/license/finder/ext/shared_helpers.rb
+++ b/lib/license/finder/ext/shared_helpers.rb
@@ -4,11 +4,8 @@ module LicenseFinder
module SharedHelpers
class Cmd
def self.run(command)
- ::License::Management.logger.debug(command)
- stdout, stderr, status = Open3.capture3(command)
- ::License::Management.logger.debug(stdout) unless stdout.nil? || stdout.empty?
- ::License::Management.logger.error(stderr) unless stderr.nil? || stderr.empty?
- [stdout, stderr, status]
+ @shell ||= ::License::Management::Shell.new
+ @shell.execute(command)
end
end
end