Method not available on this version
This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
invoke_with_conflict_check(&block)
protected
Receives a hash of options and just execute the block if some conditions
are met.
# File lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb, line 113
def invoke_with_conflict_check(&block)
if exists?
on_conflict_behavior(&block)
else
yield unless pretend?
say_status :create, :green
end
destination
rescue Errno::EISDIR, Errno::EEXIST
on_file_clash_behavior
end