Class: AudioFeedManager::Publish
- Defined in:
- lib/audio_feed_manager/cli/publish.rb
Instance Method Summary collapse
Methods inherited from Command
arguments, #arguments, arguments_specification
Instance Method Details
#run(_ = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/audio_feed_manager/cli/publish.rb', line 10 def run(_ = {}) feeds = feed_repository.list feeds.each do |feed| console.info("Syncing #{feed.id}") feed_syncer.sync(feed) do |file| console.info("Uploading file #{file}") end end console.info("Done.") end |