lib/rbbt/util/cmd.rb in rbbt-util-5.4.1 vs lib/rbbt/util/cmd.rb in rbbt-util-5.5.0
- old
+ new
@@ -1,6 +1,5 @@
-require 'rbbt/util/misc'
require 'rbbt/util/log'
require 'stringio'
module CMD
@@ -97,10 +96,10 @@
string.strip
end
def self.cmd(cmd, options = {}, &block)
- options = Misc.add_defaults options, :stderr => Log::DEBUG
+ options[:stderr] ||= Log::DEBUG
in_content = options.delete(:in)
stderr = options.delete(:stderr)
pipe = options.delete(:pipe)
post = options.delete(:post)
log = options.delete(:log)