From 54fe4bcb36959866a12509ce7d45a97c60722c11 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 14 Nov 2012 14:27:35 -0800 Subject: added requirements checking - will bail out if a configuration option is missing --- lib/leap_cli/commands/pre.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/leap_cli/commands') diff --git a/lib/leap_cli/commands/pre.rb b/lib/leap_cli/commands/pre.rb index a15a628..b1df5cd 100644 --- a/lib/leap_cli/commands/pre.rb +++ b/lib/leap_cli/commands/pre.rb @@ -40,6 +40,14 @@ module LeapCli else bail!("Could not find the root directory. Change current working directory or try --root") end + + # + # check requirements + # + REQUIREMENTS.each do |key| + assert_config! key + end + end end -- cgit v1.2.3