lib/lolcommits/plugin/lolsrv.rb in lolcommits-0.9.4 vs lib/lolcommits/plugin/lolsrv.rb in lolcommits-0.9.5.pre1
- old
+ new
@@ -3,16 +3,16 @@
require 'json'
module Lolcommits
module Plugin
class Lolsrv < Base
- def initialize(runner)
+ def initialize(runner: nil, config: nil)
super
options << 'server'
end
- def run_captureready
+ def run_capture_ready
fork { sync }
end
def configured?
!configuration['enabled'].nil? && configuration['server']
@@ -49,10 +49,10 @@
def self.name
'lolsrv'
end
def self.runner_order
- :captureready
+ :capture_ready
end
end
end
end