class RssNotifier::Cli
Public Instance Methods
init()
click to toggle source
# File lib/rss_notifier/cli.rb, line 11 def init RssNotifier::App.init(force: options.force?) end
start()
click to toggle source
# File lib/rss_notifier/cli.rb, line 22 def start unless options.notify? RssNotifier.logger.warn "Notifcation is disabled. To enable, run $ rss_notifier start --notify".red end app = RssNotifier::App.new(notify: options.notify?) app.run end
version()
click to toggle source
# File lib/rss_notifier/cli.rb, line 16 def version puts RssNotifier::VERSION end