summaryrefslogtreecommitdiff
path: root/lib/license/finder/ext/shared_helpers.rb
diff options
context:
space:
mode:
authorCan Eldem <celdem@gitlab.com>2020-04-06 11:59:02 +0000
committerCan Eldem <celdem@gitlab.com>2020-04-06 11:59:02 +0000
commitdda9e59a4a3ab471001998d0e68d67ab12b4ac69 (patch)
treead7b589d18aec83d4f09d0e64b75e1581c85589b /lib/license/finder/ext/shared_helpers.rb
parent93a00df11d79c9f59141ff42ce05ab3b3d329375 (diff)
parent93f7c568e1104936de011626d3bd7f56ebe66355 (diff)
Merge branch 'maven-airgap' into 'master'v3.7.0
Install certificate bundle. See merge request gitlab-org/security-products/license-management!126
Diffstat (limited to 'lib/license/finder/ext/shared_helpers.rb')
-rw-r--r--lib/license/finder/ext/shared_helpers.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/license/finder/ext/shared_helpers.rb b/lib/license/finder/ext/shared_helpers.rb
index cee79ab..c3d6319 100644
--- a/lib/license/finder/ext/shared_helpers.rb
+++ b/lib/license/finder/ext/shared_helpers.rb
@@ -2,10 +2,13 @@
module LicenseFinder
module SharedHelpers
+ def shell
+ ::License::Management.shell
+ end
+
class Cmd
def self.run(command)
- @shell ||= ::License::Management::Shell.new
- @shell.execute(command)
+ ::License::Management.shell.execute(command)
end
end
end