Class: Mr2cbz::Task

Inherits:
Thor
  • Object
show all
Defined in:
lib/mr2cbz/task.rb

Instance Method Summary collapse

Instance Method Details

#get(manga, from, to = from) ⇒ Object



16
17
18
19
# File 'lib/mr2cbz/task.rb', line 16

def get(manga, from, to=from)
  m = Manga.new(manga)
  m.download(from.to_i, to.to_i, options[:keep_temp])
end

#listObject



7
8
9
# File 'lib/mr2cbz/task.rb', line 7

def list
  Manga.list { |title, completed| puts "#{title} #{'[completed]' if completed}" }
end