This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
force_or_skip_or_conflict(force, skip, &block)
protected
If force is true, run the action, otherwise check if it’s not being
skipped. If both are false, show the file_collision menu, if the menu
returns true, force it, otherwise skip.
# File lib/bundler/vendor/thor/lib/thor/actions/create_file.rb, line 85
def force_or_skip_or_conflict(force, skip, &block)
if force
say_status :force, :yellow
yield unless pretend?
elsif skip
say_status :skip, :yellow
else
say_status :conflict, :red
force_or_skip_or_conflict(force_on_collision?, true, &block)
end
end