From 194ceeea1f15c6620ef678fce1bf375237ad3bf0 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Sat, 12 Nov 2016 19:47:36 +0100 Subject: [PATCH] gh-20: add check_system command --- bin/canga | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/canga b/bin/canga index a665e20..1afab9d 100755 --- a/bin/canga +++ b/bin/canga @@ -300,6 +300,15 @@ class Canga < Thor repository.write_index end + + desc "check_system", "check system configuration" + def check_system + check = Cangallo::Check.new + + rc = check.check + + exit(-1) if !rc + end end Canga.start(ARGV)