From 73b126976ad7843eb47a84944cf191bf05b14216 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 9 Oct 2012 00:05:44 -0700 Subject: fixed paths --- cli/lib/leap_cli/commands/pre.rb | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 cli/lib/leap_cli/commands/pre.rb (limited to 'cli/lib/leap_cli/commands/pre.rb') diff --git a/cli/lib/leap_cli/commands/pre.rb b/cli/lib/leap_cli/commands/pre.rb deleted file mode 100644 index ae58fc8..0000000 --- a/cli/lib/leap_cli/commands/pre.rb +++ /dev/null @@ -1,38 +0,0 @@ - -# -# check to make sure we can find the root directory of the platform -# -module LeapCli - module Commands - - desc 'Verbosity level 0..2' - arg_name 'level' - default_value '0' - flag [:v, :verbose] - - desc 'Specify the root directory' - arg_name 'path' - default_value Path.root - flag [:root] - - pre do |global,command,options,args| - # - # set verbosity - # - LeapCli.log_level = global[:verbose].to_i - - # - # require a root directory - # - if global[:root] - Path.set_root(global[:root]) - end - if Path.ok? - true - else - exit_now!("Could not find the root directory. Change current working directory or try --root") - end - end - - end -end -- cgit v1.2.3