mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Added an exit option to dots
This commit is contained in:
parent
bd45e91d0f
commit
8ce1ff26d6
1 changed files with 5 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ else
|
|||
abort("I'm not sure what to do with this OS...") unless OS.posix?
|
||||
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
|
||||
when 'copy'
|
||||
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:vim_plugins')
|
||||
end
|
||||
end
|
||||
|
||||
when 'exit'
|
||||
exit
|
||||
end # end of the case statement
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue