summaryrefslogtreecommitdiff
path: root/lib/leap_cli/log.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-14 03:02:06 -0700
committerelijah <elijah@riseup.net>2012-10-14 03:02:06 -0700
commitc6d2272ddb370b9731e17b06fa08971e6cda5202 (patch)
tree492931f6b62088062ae070814ec714bcbd1f0707 /lib/leap_cli/log.rb
parentcde5fc17fe235405703c67184c81d85643b257a2 (diff)
added add-user command
Diffstat (limited to 'lib/leap_cli/log.rb')
-rw-r--r--lib/leap_cli/log.rb19
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/leap_cli/log.rb b/lib/leap_cli/log.rb
index fe8e5ac..ac35eae 100644
--- a/lib/leap_cli/log.rb
+++ b/lib/leap_cli/log.rb
@@ -1,15 +1,19 @@
module LeapCli
+ extend self
- def self.log_level
+ def log_level
@log_level
end
- def self.log_level=(value)
+ def log_level=(value)
@log_level = value
end
-
end
+##
+## LOGGING
+##
+
def log0(message=nil, &block)
if message
puts message
@@ -38,12 +42,7 @@ def log2(message=nil, &block)
end
end
-def help!(message=nil)
- ENV['GLI_DEBUG'] = "false"
- help_now!(message)
+def progress(message)
+ log1(" * " + message)
end
-def fail!(message=nil)
- ENV['GLI_DEBUG'] = "false"
- exit_now!(message)
-end \ No newline at end of file