From a00a0475515fc1576d88e2c9bcc99e844726d37d Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 8 Oct 2012 12:58:55 +0200 Subject: refactoring gem task --- lib/tasks/task_helper.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/tasks/task_helper.rb (limited to 'lib/tasks/task_helper.rb') 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 + -- cgit v1.2.3 From 00b7b36516d1d07300870029ad5190f06122a493 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 10 Oct 2012 19:56:35 +0200 Subject: first steps at reducing core --- lib/tasks/task_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tasks/task_helper.rb') diff --git a/lib/tasks/task_helper.rb b/lib/tasks/task_helper.rb index aa37698..26e60bc 100644 --- a/lib/tasks/task_helper.rb +++ b/lib/tasks/task_helper.rb @@ -2,7 +2,7 @@ require File.expand_path('../../../lib/leap_web/version', __FILE__) module TaskHelper - ENGINES = %w(core users certs help) + ENGINES = %w(users certs help) def putsys(cmd) puts cmd -- cgit v1.2.3