Class: AudioFeedManager::ShowFeed

Inherits:
Command
  • Object
show all
Defined in:
lib/audio_feed_manager/cli/show_feed.rb

Instance Method Summary collapse

Methods inherited from Command

arguments, #arguments, arguments_specification

Instance Method Details

#run(feed:) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/audio_feed_manager/cli/show_feed.rb', line 12

def run(feed:)
  feed = feed_repository.fetch(feed)
  audio_files = feed_items_repository.list(feed)

  print_details(feed)
  separator
  print_audio_files(audio_files)
rescue FeedNotFound => e
  console.die(e)
end