lib/pipe-run.rb in pipe-run-0.2.0 vs lib/pipe-run.rb in pipe-run-0.2.1
- old
+ new
@@ -18,9 +18,13 @@
# @return [String] command output
#
def self.run(command, &block)
if not block.nil?
+ if not self.respond_to? :run_nonblock
+ require "em-pipe-run"
+ end
+
return self.run_nonblock(command, &block)
end
###