Method: Fig::OperatingSystem#plain_exec
- Defined in:
- lib/fig/operating_system.rb
#plain_exec(command) ⇒ Object
286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/fig/operating_system.rb', line 286 def plain_exec(command) # Kernel#exec won't run Kernel#at_exit handlers. Fig::AtExit.execute() if ENV['FIG_COVERAGE'] SimpleCov.at_exit.call end begin Kernel.exec(*command) rescue SystemCallError => exception raise Fig::UserInputError.new exception end end |