Class: Jenkins::Listeners::RunListenerProxy

Inherits:
Object
  • Object
show all
Includes:
Plugin::Proxy
Defined in:
lib/jenkins/listeners/run_listener_proxy.rb

Instance Method Summary collapse

Methods included from Plugin::Proxy

#getTarget

Methods included from Plugin::Behavior

extended, #implemented, #included

Methods included from Plugin::Behavior::BehavesAs

#behaves_as

Constructor Details

#initialize(plugin, object) ⇒ RunListenerProxy

Returns a new instance of RunListenerProxy.



5
6
7
# File 'lib/jenkins/listeners/run_listener_proxy.rb', line 5

def initialize(plugin, object)
  super(plugin, object, Java.hudson.model.AbstractBuild.java_class)
end

Instance Method Details

#onCompleted(run, listener) ⇒ Object



13
14
15
# File 'lib/jenkins/listeners/run_listener_proxy.rb', line 13

def onCompleted(run, listener)
  @object.completed(run, listener)
end

#onDeleted(run) ⇒ Object



21
22
23
# File 'lib/jenkins/listeners/run_listener_proxy.rb', line 21

def onDeleted(run)
  @object.deleted(run)
end

#onFinalized(run) ⇒ Object



17
18
19
# File 'lib/jenkins/listeners/run_listener_proxy.rb', line 17

def onFinalized(run)
  @object.finalized(run)
end

#onStarted(run, listener) ⇒ Object



9
10
11
# File 'lib/jenkins/listeners/run_listener_proxy.rb', line 9

def onStarted(run, listener)
  @object.started(run, listener)
end