diff options
author | elijah <elijah@riseup.net> | 2012-11-14 14:27:35 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-14 14:27:35 -0800 |
commit | 54fe4bcb36959866a12509ce7d45a97c60722c11 (patch) | |
tree | 8d54bd70cc1339ba5461925779373f87aae1b388 /lib/leap_cli/commands/pre.rb | |
parent | c3730c0dd8362f0e6a4d7667d83f733d04ab59f9 (diff) |
added requirements checking - will bail out if a configuration option is missing
Diffstat (limited to 'lib/leap_cli/commands/pre.rb')
-rw-r--r-- | lib/leap_cli/commands/pre.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 |