Class: Broken

Inherits:
QuartzPlugin show all
Defined in:
lib/plugins/broken.rb

Constant Summary collapse

@@version_major =
0
@@version_minor =
0
@@version_revision =
1

Instance Method Summary collapse

Methods inherited from QuartzPlugin

#get_version, #initialize, #payload, #run_result, #run_shell

Constructor Details

This class inherits a constructor from QuartzPlugin

Instance Method Details

#infoObject



9
10
11
# File 'lib/plugins/broken.rb', line 9

def info
	{ :uid => "04165a45fde840a9a17b41f019b3dca3", :name => "Broken", :version => get_version }
end

#run(message) ⇒ Object



13
14
15
16
17
18
# File 'lib/plugins/broken.rb', line 13

def run(message)
	@log.info "Running with #{message}"
	@log.info "This is a failure"

	run_result(false, "Boo! It's broken")
end