Method: Spring::Test::ApplicationGenerator#system
- Defined in:
- lib/spring/test/application_generator.rb
#system(command) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/spring/test/application_generator.rb', line 21 def system(command) if ENV["SPRING_DEBUG"] puts "$ #{command}\n" else command = "(#{command}) > /dev/null" end Kernel.system(command) or raise "command failed: #{command}" puts if ENV["SPRING_DEBUG"] end |