Sha256: 86d41d91b328429631a17792e00869cbc1c44729b02a46c8e2966cfaa72c0f84
Contents?: true
Size: 655 Bytes
Versions: 25
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true # # Copyright 2013 whiteleaf. All rights reserved. # module Command class Trace < CommandBase def self.oneline_help "直前のバックトレースを表示します" end def initialize super() @opt.separator <<-MSG ・エラーが発生した際に保存されたバックトレースログを表示します。 ・ログテキスト自体は #{Narou::Backtracer.log_path} に保存されています。 MSG end def execute(argv) super return unless File.exist?(Narou::Backtracer.log_path) puts File.read(Narou::Backtracer.log_path) end end end
Version data entries
25 entries across 25 versions & 1 rubygems