Class: IssueWorker Private

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/issue_scheduler/server.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

My worker class that creates issues

Instance Method Summary collapse

Instance Method Details

#perform(template_name, time) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Create an issue with the given template name

Parameters:

  • template_name (String)

    the name of the template to use

  • time (Time)

    the time to use for the issue



50
51
52
53
54
55
56
57
58
59
# File 'lib/issue_scheduler/server.rb', line 50

def perform(template_name, time)
  puts "**** IssueWorker#perform called with #{template_name.pretty_inspect.chomp}, #{time.pretty_inspect.chomp}"

  template = load_issue_template(template_name)
  return unless template

  create_issue(template)

  puts '**** IssueWorker#perform finished'
end