Module: Tr3llo::Command::List::ArchiveCards
- Extended by:
- ArchiveCards
- Included in:
- ArchiveCards
- Defined in:
- lib/3llo/command/list/archive_cards.rb
Instance Method Summary collapse
Instance Method Details
#execute(key) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/3llo/command/list/archive_cards.rb', line 7 def execute(key) list_id = Entities.parse_id(:list, key) interface = Application.fetch_interface!() interface.print_frame do is_approved = interface.input.yes?("Are you sure you want to archive all cards?") if is_approved archive_cards(list_id) interface.puts("All cards on the list have been archived.") end end end |