@@ -0,0 +1,15 @@
+require 'beaker/tasks/rake_task'
+
+Beaker::Tasks::RakeTask.new
+
+desc "Run Beaker PE tests"
+Beaker::Tasks::RakeTask.new("beaker:test:pe",:hosts) do |t,args|
+  t.type = 'pe'
+  t.hosts = args[:hosts]
+end
+
+desc "Run Beaker Git tests"
+Beaker::Tasks::RakeTask.new("beaker:test:git",:hosts) do |t,args|
+  t.type = 'git'
+  t.hosts = args[:hosts]
+end
The task created by this line doesn't seem to work. I get NameError: undefined local variable or method `failure_message` whenever I run it. It also doesn't seem to actually use the :hosts and :type argument that I pass to it whereas the tasks defined below seem to work fine.