2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/modules/general.rb', line 2
def crl_general( sym, cmd, channel, response, data, obj, custom={} )
messages = []
case sym
when :download
result, messages = crl_general_download( cmd[:url], obj )
when :pre_titles
result, messages = crl_general_pre_titles( cmd, channel, data, obj )
when :mining_rss_one
result = ( cmd[:url], response, obj )
when :mining_rss_two
result = ( cmd[:url], response, obj )
when :format_url_s3
result = crl_general_format_url_s3( obj, channel[:options][:html], custom[:query] )
when :format_html_remove
result = crl_general_format_html_remove( custom[:html] )
else
messages.push( "General: #{sym} not found." )
end
return result, messages
end
|