BigW Consortium Gitlab

rake_helpers.rb 283 Bytes
Newer Older
1
module RakeHelpers
2
  def run_rake_task(task_name, *args)
3
    Rake::Task[task_name].reenable
4
    Rake.application.invoke_task("#{task_name}[#{args.join(',')}]")
5 6 7 8 9 10
  end

  def stub_warn_user_is_not_gitlab
    allow_any_instance_of(Object).to receive(:warn_user_is_not_gitlab)
  end
end