summaryrefslogtreecommitdiff
path: root/lib/leap_cli/util.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-14 00:24:19 -0800
committerelijah <elijah@riseup.net>2012-11-14 00:24:19 -0800
commit8472cc0797e66fea30758cb27b5fdb7b926144ee (patch)
tree557bb1d3c2596c6a603d59375f36a4648d5b3eae /lib/leap_cli/util.rb
parent10bd0ba9d66a32cb8e0f7fb322843005b23181b7 (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.rb10
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
##