Class: Deployinator::Views::RunLogs

Inherits:
Layout
  • Object
show all
Defined in:
views/run_logs.rb

Instance Method Summary collapse

Instance Method Details

#filesObject


3
4
5
6
7
8
9
10
11
# File 'views/run_logs.rb', line 3

def files
  glob = Deployinator::Helpers::RUN_LOG_PATH + "*.html"
  Dir.glob(glob).sort.reverse[0..300].map do |f|
    {
      :name => File.basename(f),
      :time => Time.at(f[/(\d{8,})/].to_i)
    }
  end
end