Class: Durt::Command::NewIssue
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
-
#initialize ⇒ NewIssue
constructor
A new instance of NewIssue.
Methods inherited from Service
Constructor Details
#initialize ⇒ NewIssue
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 |