FEATURE: Use amazon s3 inventory to manage upload stats (#6867)

This commit is contained in:
Vinoth Kannan
2019-02-01 10:10:48 +05:30
committed by GitHub
parent a1b4d9b061
commit b4f713ca52
14 changed files with 388 additions and 21 deletions

View File

@ -102,4 +102,14 @@ module Helpers
tag_group.tags << (Tag.where(name: name).first || Fabricate(:tag, name: name))
end
end
def capture_stdout
old_stdout = $stdout
io = StringIO.new
$stdout = io
yield
io.string
ensure
$stdout = old_stdout
end
end