summaryrefslogtreecommitdiff
path: root/lib/tasks/task_helper.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-08 12:58:55 +0200
committerAzul <azul@leap.se>2012-10-08 12:58:55 +0200
commita00a0475515fc1576d88e2c9bcc99e844726d37d (patch)
tree6ce03eca67c18b3435cb7edd475d2cfca3cf221f /lib/tasks/task_helper.rb
parentd2e75cbf5540c0460be6c68e5d56511132ef52a9 (diff)
refactoring gem task
Diffstat (limited to 'lib/tasks/task_helper.rb')
-rw-r--r--lib/tasks/task_helper.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/tasks/task_helper.rb b/lib/tasks/task_helper.rb
new file mode 100644
index 0000000..aa37698
--- /dev/null
+++ b/lib/tasks/task_helper.rb
@@ -0,0 +1,19 @@
+require File.expand_path('../../../lib/leap_web/version', __FILE__)
+
+module TaskHelper
+
+ ENGINES = %w(core users certs help)
+
+ def putsys(cmd)
+ puts cmd
+ system cmd
+ end
+
+ def each_gem
+ ENGINES.each do |gem_name|
+ puts "########################### #{gem_name} #########################"
+ yield gem_name
+ end
+ end
+end
+