This is to avoid Thor’s warnings when stubbing methods on the Thor class.
Public Class Methods
exec!(cmd)click to toggle source
# File lib/backup/cli.rb, line 410defexec!(cmd)
puts"Launching: #{ cmd }"exec(cmd)
end
overwrite?(path)click to toggle source
# File lib/backup/cli.rb, line 402defoverwrite?(path)
returntrueunlessFile.exist?(path)
$stderr.print"A file already exists at '#{ path }'.\n"+"Do you want to overwrite? [y/n] "/^[Yy]/=~$stdin.getsend