debian-mirror-gitlab/config/initializers/console_message.rb

15 lines
271 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2020-03-13 15:44:24 +05:30
if Gitlab::Runtime.console?
2021-01-29 00:20:46 +05:30
# Stop irb from writing a history file by default.
module IrbNoHistory
def init_config(*)
super
IRB.conf[:SAVE_HISTORY] = false
end
end
IRB.singleton_class.prepend(IrbNoHistory)
2018-10-15 14:42:47 +05:30
end