Module: Kernel
- Defined in:
- lib/spriggan/system_calls_patch.rb
Constant Summary collapse
- PURGED_ENV =
{ 'GIT_DIR' => nil, 'GEM_HOME' => nil, 'GEM_PATH' => nil, 'BUNDLE_BIN_PATH' => nil, 'BUNDLE_GEMFILE' => nil, 'RUBYOPT' => nil }
Instance Method Summary collapse
Instance Method Details
#system!(cmd_line) ⇒ Object
11 12 13 14 15 |
# File 'lib/spriggan/system_calls_patch.rb', line 11 def system!(cmd_line) succeeded = system(PURGED_ENV, cmd_line) raise SystemCallError.new(nil, $?.exitstatus) unless succeeded true end |