From 8472cc0797e66fea30758cb27b5fdb7b926144ee Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 14 Nov 2012 00:24:19 -0800 Subject: made 'leap update-cert' intelligently update all certificates as needed. --- lib/leap_cli/util.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/leap_cli/util.rb') 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 ## -- cgit v1.2.3