module Tmuxinator::Helper
Public Instance Methods
confirm!(msg) { || ... }
click to toggle source
# File lib/tmuxinator/helper.rb, line 9 def confirm!(msg) puts msg if %w(yes Yes YES y).include?(STDIN.gets.chop) yield else exit! "Aborting." end end
exit!(msg)
click to toggle source
# File lib/tmuxinator/helper.rb, line 4 def exit!(msg) puts msg Kernel.exit(1) end