diff options
author | elijah <elijah@riseup.net> | 2016-06-21 15:59:27 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-06-21 15:59:27 -0700 |
commit | d4ee04322ce642c602269738e45f63b800d78cf7 (patch) | |
tree | a49bba9f5a34a3d50b0bbe8b325e0172b4a6dd33 /lib/leap_cli/commands/new.rb | |
parent | 7258edade9422fdfba1311be779d2ba40d2d042c (diff) |
fix ruby deprecation warnings
Diffstat (limited to 'lib/leap_cli/commands/new.rb')
-rw-r--r-- | lib/leap_cli/commands/new.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/new.rb b/lib/leap_cli/commands/new.rb index 838b80e..5c9fd74 100644 --- a/lib/leap_cli/commands/new.rb +++ b/lib/leap_cli/commands/new.rb @@ -54,7 +54,7 @@ module LeapCli; module Commands unless directory && directory.any? help! "Directory name is required." end - unless File.exists?(directory) + unless File.exist?(directory) if global[:yes] || agree("Create directory #{directory}? ") ensure_dir directory else |