Method: Command::Update#remove_old_log

Defined in:
lib/command/update.rb

#remove_old_logObject



148
149
150
151
152
153
# File 'lib/command/update.rb', line 148

def remove_old_log
  list = get_log_paths
  (list[LOG_NUM_LIMIT..-1] || []).each do |path|
    File.delete(path)
  end
end