33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/openc3/models/reducer_model.rb', line 33
def self.add_file(bucket_key)
bucket_key_split = bucket_key.split('/')
if bucket_key_split[2] == 'tlm'
_, _, scope, target, _ = File.basename(bucket_key).split('__')
case bucket_key
when /__decom\.bin.gz$/
Store.sadd("#{scope}__#{target}__reducer__decom", bucket_key)
when /__reduced_minute\.bin.gz$/
Store.sadd("#{scope}__#{target}__reducer__minute", bucket_key)
when /__reduced_hour\.bin.gz$/
Store.sadd("#{scope}__#{target}__reducer__hour", bucket_key)
end
end
end
|