lib/ormdev/source/util/sh_util.rb in ormdev-0.0.8 vs lib/ormdev/source/util/sh_util.rb in ormdev-0.0.9
- old
+ new
@@ -5,10 +5,10 @@
# 工具方法
def self.run_command(command, message = '', abort = true)
result = system(command) if command.is_a?(String)
OrmDev::LogUtil.print_command message
unless result then
- OrmDev::LogUtil.print_error "操作内容:#{message}\n操作命令:#{command}"
+ OrmDev::LogUtil.print_error "操作内容:#{message}\n操作命令:" + "#{command}".magenta
abort(message) if abort
end
result
end
end