Sha256: 013cc7fee50797451196e4edd6ad7e412db706b0345d1656a948339e425652d6
Contents?: true
Size: 929 Bytes
Versions: 11
Compression:
Stored size: 929 Bytes
Contents
- status = job.status(Time.zone) .id %label ID: = status.delete('id') .status-message %label Description: = status.delete('description') .status-message %label Duration: = status.delete('duration') .status-message %label Record Count: = status.delete('record_count') .created_at %label Created At: = status.delete('created_at') .status-message %label Started At: = status.delete('started_at') .status-message %label % Complete: = status.delete('percent_complete') - remaining = {} - status.each_pair do |key, value| - next if value.blank? .status-message - if ['state', '_type'].include?(key) - elsif value.kind_of?(Hash) || value.kind_of?(Array) - remaining[key] = value - else %label= "#{key.to_s.titleize}:" = value .clearfix - remaining.each_pair do |key, value| .status-message %label= "#{key.to_s.titleize}:" %pre %code= pretty_print_array_or_hash(value)
Version data entries
11 entries across 11 versions & 1 rubygems