Class: NntpScrape::Cli

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

Instance Method Summary collapse

Instance Method Details

#headers(group) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/nntp_scrape/cli.rb', line 13

def headers(group)
  setup
  
  @client.watch_new(group) do |result|
    p result
  end

end

#replObject



23
24
25
26
27
# File 'lib/nntp_scrape/cli.rb', line 23

def repl
  setup
  r = Repl.new(@client)
  r.start
end