lib/dtas/source/cmd.rb in dtas-0.9.0 vs lib/dtas/source/cmd.rb in dtas-0.10.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
+# Copyright (C) 2013-2015 all contributors <dtas-all@nongnu.org>
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
require_relative '../../dtas'
require_relative '../source'
require_relative '../command'
require_relative '../serialize'
@@ -29,11 +29,11 @@
ivars_to_hash(SIVS)
end
alias to_hsh to_hash
- def spawn(format, rg_state, opts)
- raise "BUG: #{self.inspect}#spawn called twice" if @to_io
+ def src_spawn(format, rg_state, opts)
+ raise "BUG: #{self.inspect}#src_spawn called twice" if @to_io
e = format.to_env
@pid = dtas_spawn(e.merge!(@env), command_string, opts)
end
end