diff options
author | Patrick Metcalfe <git@patrickmetcalfe.com> | 2015-04-19 19:13:28 -0500 |
---|---|---|
committer | Patrick Metcalfe <git@patrickmetcalfe.com> | 2015-04-19 19:13:28 -0500 |
commit | 8247e5516af2120758a1bc4b1a09b39aaddb6a6b (patch) | |
tree | de492402bc30646d83a27bda7ecfd7a7f11b3b0f /lib/bundler/ui | |
parent | c7fce7422f467407f7544062661cbbb726b9ef38 (diff) | |
download | bundler-8247e5516af2120758a1bc4b1a09b39aaddb6a6b.tar.gz |
centralized boolean question logic
Diffstat (limited to 'lib/bundler/ui')
-rw-r--r-- | lib/bundler/ui/shell.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb index 6299c5e9d2..81849c3a55 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -46,6 +46,14 @@ module Bundler @shell.ask(msg) end + def yes?(msg) + @shell.yes?(msg) + end + + def no? + @shell.no?(msg) + end + def level=(level) raise ArgumentError unless LEVELS.include?(level.to_s) @level = level |