class Watch::Keeper::Xelor
Public Class Methods
new(sprockets)
click to toggle source
# File lib/watch/keeper.rb, line 7 def initialize(sprockets) @xelors = connect(sprockets) end
Public Instance Methods
report(tracker, project_id, issue_type, summary)
click to toggle source
# File lib/watch/keeper.rb, line 11 def report(tracker, project_id, issue_type, summary) if @xelors[tracker] @xelors[tracker].report(project_id, issue_type, summary) else end end
Private Instance Methods
connect(sprockets)
click to toggle source
# File lib/watch/keeper.rb, line 20 def connect(sprockets) if sprockets["jira"] begin @xelors["jira"] = Watch::Keeper::Jira.new(sprockets["jira"]) rescue end end end