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/ssh_key.rb | |
parent | 7258edade9422fdfba1311be779d2ba40d2d042c (diff) |
fix ruby deprecation warnings
Diffstat (limited to 'lib/leap_cli/ssh_key.rb')
-rw-r--r-- | lib/leap_cli/ssh_key.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/ssh_key.rb b/lib/leap_cli/ssh_key.rb index 138f444..2570557 100644 --- a/lib/leap_cli/ssh_key.rb +++ b/lib/leap_cli/ssh_key.rb @@ -30,7 +30,7 @@ module LeapCli if arg1 =~ /^ssh-/ type, data = arg1.split(' ') key = SshKey.new load_from_data(data, type) - elsif File.exists? arg1 + elsif File.exist? arg1 key = SshKey.new load_from_file(arg1) key.filename = arg1 else @@ -38,7 +38,7 @@ module LeapCli end end return key - rescue StandardError => exc + rescue StandardError end def self.load_from_file(filename) |