Sha256: bcbebe7f7e341655891712e9e49f15bff9741abb29f719e226848f2a284463df
Contents?: true
Size: 428 Bytes
Versions: 6
Compression:
Stored size: 428 Bytes
Contents
require_relative 'log_util' module OrmDev class SHUtil # 工具方法 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}" abort(message) if abort end result end end end
Version data entries
6 entries across 6 versions & 1 rubygems