Sha256: 03d3c7d1e5ea095e502532db3f93fbd5b105a6a326413c4939252f86b00d114f
Contents?: true
Size: 558 Bytes
Versions: 73
Compression:
Stored size: 558 Bytes
Contents
require 'open3' module Flydata module Util class Shell # Call this method if cmd includes bundle exec on different path def self.run_bundle_cmd(cmd, option = {}) run_cmd(cmd, option.merge(bundle: true)) end def self.run_cmd(cmd, option = {}) # To avoid to use same env value in the child process env = if option[:bundle] { 'BUNDLE_GEMFILE' => nil, 'GEM_HOME' => nil, } else {} end Open3.capture3(env, cmd) end end end end
Version data entries
73 entries across 73 versions & 1 rubygems