Class: Durt::Command::SelectProject
- Defined in:
- lib/durt/command.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
-
#initialize ⇒ SelectProject
constructor
A new instance of SelectProject.
Methods inherited from Service
Constructor Details
#initialize ⇒ SelectProject
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 |