Module: Mumukit::Templates::WithIsolatedEnvironment
- Defined in:
- lib/mumukit/templates/with_isolated_environment.rb
Instance Method Summary collapse
Instance Method Details
#run_file!(file) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/mumukit/templates/with_isolated_environment.rb', line 3 def run_file!(file) env = Mumukit::IsolatedEnvironment.new env.configure!(file) { |filename| command_line(filename) } env.run! ensure env.destroy! end |