From 8ce1ff26d62e07d65b995bc30d2e0dd574f2461f Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Mon, 5 Jun 2017 08:34:29 -0700 Subject: [PATCH] Added an exit option to dots --- bin/dots.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/dots.rb b/bin/dots.rb index aab9439..0ab70d6 100755 --- a/bin/dots.rb +++ b/bin/dots.rb @@ -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