Class: Scrapers::RubyTapas::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/scrapers/rubytapas/cli.rb

Overview

Thor script that handles things with Avdi Grimm’s RubyTapas

Instance Method Summary collapse

Instance Method Details

#download(episode) ⇒ Object



19
20
21
# File 'lib/scrapers/rubytapas/cli.rb', line 19

def download(episode)
  Scrapers::RubyTapas::Scraper.new(episode, options).scrape!
end

#listObject



28
29
30
# File 'lib/scrapers/rubytapas/cli.rb', line 28

def list()
  Scrapers::RubyTapas::Scraper.new(nil, options).list!
end

#versionObject



34
35
36
# File 'lib/scrapers/rubytapas/cli.rb', line 34

def version
  say "rubytapas version: #{Scrapers::RubyTapas::VERSION}. scrapers version: #{Scrapers::VERSION}."
end