Method: Command::Update#view_log
- Defined in:
- lib/command/update.rb
#view_log ⇒ Object
116 117 118 119 120 121 122 123 124 |
# File 'lib/command/update.rb', line 116 def view_log list = get_log_paths n = ["log"] if list[n] puts File.read(list[n], encoding: Encoding::UTF_8) else error "#{n+1}番目のログはありません" end end |