Class: Podrb::Commands::Add::Output
- Inherits:
-
BaseOutput
- Object
- BaseOutput
- Podrb::Commands::Add::Output
- Defined in:
- lib/podrb/commands/add/output.rb
Instance Method Summary collapse
Methods inherited from BaseOutput
Constructor Details
This class inherits a constructor from Podrb::Commands::BaseOutput
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/podrb/commands/add/output.rb', line 7 def call case @context[:details] when :successfully_added <<~OUTPUT Podcast successfully added to the database! OUTPUT when :already_added <<~OUTPUT Podcast already exists in the database. OUTPUT when :badly_formatted <<~OUTPUT The podcast feed is badly formatted or unsupported. OUTPUT when :missing_sync_url <<~OUTPUT This podcast feed doesn't provide a sync url. Please, use the --sync-url option to set this data manually. Ex: `podrb add FEED --sync-url=SYNC_URL` OUTPUT end end |