Class: Durt::Command::Memo

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

#initializeMemo

Returns a new instance of Memo.



74
75
76
77
78
79
80
81
# File 'lib/durt/command.rb', line 74

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

  steps << ->(_) { controller.sync_issues }
  steps << ->(_) { controller.select_issue }
  steps << ->(issue) { controller.enter_issue(issue) }
end