show production.log, show only active milestone for issue filter

This commit is contained in:
Dmitriy Zaporozhets 2012-12-19 07:14:05 +03:00
parent e9c6d4adfa
commit 4b02f4a22d
4 changed files with 27 additions and 2 deletions

View file

@ -14,6 +14,11 @@ module Gitlab
logs = `tail -n 2000 #{path}`.split("\n")
end
def self.read_latest_for filename
path = Rails.root.join("log", filename)
logs = `tail -n 2000 #{path}`.split("\n")
end
def self.build
new(Rails.root.join("log", file_name))
end