diff options
author | elijah <elijah@riseup.net> | 2012-11-14 00:24:19 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-14 00:24:19 -0800 |
commit | 8472cc0797e66fea30758cb27b5fdb7b926144ee (patch) | |
tree | 557bb1d3c2596c6a603d59375f36a4648d5b3eae /lib/leap_cli/util.rb | |
parent | 10bd0ba9d66a32cb8e0f7fb322843005b23181b7 (diff) |
made 'leap update-cert' intelligently update all certificates as needed.
Diffstat (limited to 'lib/leap_cli/util.rb')
-rw-r--r-- | lib/leap_cli/util.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb index bd8b04b..8e7b752 100644 --- a/lib/leap_cli/util.rb +++ b/lib/leap_cli/util.rb @@ -105,6 +105,16 @@ module LeapCli end end + def file_exists?(*files) + files.each do |file_path| + file_path = Path.named_path(file_path) + if !File.exists?(file_path) + return false + end + end + return true + end + ## ## FILES AND DIRECTORIES ## |