require "mega_bar/engine" require 'byebug' module MegaBar def MegaBar.hello_b abort('hello b') end def MegaBar.call_rake(task, options = {}) options[:rails_env] ||= Rails.env args = options.map { |n, v| "#{n.to_s.upcase}='#{v}'" } system "rake #{task} #{args.join(' ')} --trace 2>&1 >> #{Rails.root}/log/rake.log &" end def MegaBar.call_rails(task, options = {}) #not used options[:rails_env] ||= Rails.env args = options.map { |n, v| "#{n.to_s.upcase}='#{v}'" } system "rails g #{task} #{args.join(' ')} --trace 2>&1 >> #{Rails.root}/log/rake.log &" end end