Class: Durt::Command::NewIssue

Inherits:
Service
  • Object
show all
Defined in:
lib/durt/command.rb

Instance Attribute Summary

Attributes inherited from Service

#result, #state

Instance Method Summary collapse

Methods inherited from Service

call, #call

Constructor Details

#initializeNewIssue

Returns a new instance of NewIssue.



103
104
105
106
107
108
109
110
# File 'lib/durt/command.rb', line 103

def initialize
  project = Durt::Project.current_project
  controller = Durt::ProjectController.new(project)

  steps << ->(_) { controller.new_issue }
  steps << ->(issue) { controller.select_issue(issue) }
  steps << ->(issue) { controller.push_issue(issue) }
end