summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/runner.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/runner.rb b/lib/runner.rb
index eff39e0..1a273ac 100644
--- a/lib/runner.rb
+++ b/lib/runner.rb
@@ -1,5 +1,10 @@
class Runner
attr_accessor :project, :build
+ @queue = :runner
+
+ def self.perform(project_id)
+ new(Project.find(project_id)).run
+ end
def initialize(project)
@project = project