Class: NewsFetcher::Commands::Edit
- Inherits:
-
NewsFetcher::Command
- Object
- Simple::CommandParser::Command
- NewsFetcher::Command
- NewsFetcher::Commands::Edit
- Defined in:
- lib/newsfetcher/commands/edit.rb
Instance Attribute Summary
Attributes inherited from NewsFetcher::Command
#dir, #log_level, #max_threads
Instance Method Summary collapse
Instance Method Details
#run(args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/newsfetcher/commands/edit.rb', line 7 def run(args) super editor = ENV['EDITOR'] or raise Error, "No editor defined in $EDITOR" @profile.find_subscriptions(ids: args).each do |subscription| system(editor, (subscription.dir / ConfigFileName).to_s) end end |