Class: Cws3chk::Checker
- Inherits:
-
Struct
- Object
- Struct
- Cws3chk::Checker
- Includes:
- ThreadifyProcs
- Defined in:
- lib/cws3chk/checker.rb
Overview
This class is in charge of checking the existance on S3 of the assets described by ActiveRecord + Carrierwave. It checks for the existence of the original file an the different versions. It stores the result of the check in Redis.
After loading the data from the database, it performs the calls to S3 in parallel via threads.
Instance Attribute Summary collapse
-
#mounted_column ⇒ Object
Returns the value of attribute mounted_column.
-
#request ⇒ Object
Returns the value of attribute request.
-
#threads ⇒ Object
Returns the value of attribute threads.
Instance Method Summary collapse
Instance Attribute Details
#mounted_column ⇒ Object
Returns the value of attribute mounted_column
12 13 14 |
# File 'lib/cws3chk/checker.rb', line 12 def mounted_column @mounted_column end |
#request ⇒ Object
Returns the value of attribute request
12 13 14 |
# File 'lib/cws3chk/checker.rb', line 12 def request @request end |
#threads ⇒ Object
Returns the value of attribute threads
12 13 14 |
# File 'lib/cws3chk/checker.rb', line 12 def threads @threads end |
Instance Method Details
#check ⇒ Object
15 16 17 |
# File 'lib/cws3chk/checker.rb', line 15 def check call_with_threads procs, number_of_threads: threads end |