Added an exit option to dots

This commit is contained in:
Gene Liverman 2017-06-05 08:34:29 -07:00
parent bd45e91d0f
commit 8ce1ff26d6

View file

@ -36,7 +36,7 @@ else
abort("I'm not sure what to do with this OS...") unless OS.posix? abort("I'm not sure what to do with this OS...") unless OS.posix?
end end
task = @prompt.select('What would you like to do?', %w[copy link install]) task = @prompt.select('What would you like to do?', %w[copy link install exit])
case task case task
when 'copy' when 'copy'
if @prompt.yes?('Are you sure you want to copy these files?') if @prompt.yes?('Are you sure you want to copy these files?')
@ -74,4 +74,7 @@ when 'install'
cmd.run('bundle exec rake dots:run_puppet') cmd.run('bundle exec rake dots:run_puppet')
cmd.run('bundle exec rake dots:vim_plugins') cmd.run('bundle exec rake dots:vim_plugins')
end end
end
when 'exit'
exit
end # end of the case statement