Class: Bonobot::FilesOp
- Inherits:
-
Object
- Object
- Bonobot::FilesOp
- Defined in:
- lib/bonobot/files_op.rb
Class Method Summary collapse
- .add_missing ⇒ Object
- .missing ⇒ Object
- .out_of_date ⇒ Object
- .root ⇒ Object
- .update_out_of_date ⇒ Object
Class Method Details
.add_missing ⇒ Object
13 14 15 16 17 |
# File 'lib/bonobot/files_op.rb', line 13 def self.add_missing missing.each do |overload| Annotator.add_annotation(root.join(overload.path), overload.engine_file.fingerprint) end end |
.missing ⇒ Object
5 6 7 |
# File 'lib/bonobot/files_op.rb', line 5 def self.missing OverloadsRegistry.find_by(status: :missing) end |
.out_of_date ⇒ Object
9 10 11 |
# File 'lib/bonobot/files_op.rb', line 9 def self.out_of_date OverloadsRegistry.find_by(status: :out_of_date) end |
.root ⇒ Object
25 26 27 |
# File 'lib/bonobot/files_op.rb', line 25 def self.root ::Rails.root end |
.update_out_of_date ⇒ Object
19 20 21 22 23 |
# File 'lib/bonobot/files_op.rb', line 19 def self.update_out_of_date out_of_date.each do |overload| Annotator.update_annotation(root.join(overload.path), overload.engine_file.fingerprint) end end |