Class: Durt::Command::SelectProject

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

#initializeSelectProject

Returns a new instance of SelectProject.



56
57
58
59
60
61
# File 'lib/durt/command.rb', line 56

def initialize
  controller = Durt::GlobalController.new

  steps << ->(_) { controller.select_project }
  steps << ->(project) { controller.switch_to_project(project) }
end