Method: Websitary::App#execute_aggregate
- Defined in:
- lib/websitary.rb
#execute_aggregate ⇒ Object
Aggregate data for later review (see #execute_show)
191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'lib/websitary.rb', line 191 def execute_aggregate rv = execute_downdiff(false) do |url, difftext, opts| if difftext and !difftext.empty? aggrbase = @configuration.encoded_filename('aggregate', url, true, 'md5') aggrext = Digest::MD5.hexdigest(Time.now.to_s) aggrfile = [aggrbase, aggrext].join('_') @configuration.write_file(aggrfile) {|io| io.puts difftext} end end clean_diffs rv end |