Class: Hydra::Messages::Worker::RunFile
- Inherits:
-
Hydra::Message
- Object
- Hydra::Message
- Hydra::Messages::Worker::RunFile
- Defined in:
- lib/hydra/message/worker_messages.rb
Overview
Message telling the Runner to run a file
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
The file that should be run.
Instance Method Summary collapse
-
#handle(runner) ⇒ Object
:nodoc:.
-
#serialize ⇒ Object
:nodoc:.
Methods inherited from Hydra::Message
Constructor Details
This class inherits a constructor from Hydra::Message
Instance Attribute Details
#file ⇒ Object
The file that should be run
20 21 22 |
# File 'lib/hydra/message/worker_messages.rb', line 20 def file @file end |
Instance Method Details
#handle(runner) ⇒ Object
:nodoc:
24 25 26 |
# File 'lib/hydra/message/worker_messages.rb', line 24 def handle(runner) #:nodoc: runner.run_file(@file) end |
#serialize ⇒ Object
:nodoc:
21 22 23 |
# File 'lib/hydra/message/worker_messages.rb', line 21 def serialize #:nodoc: super(:file => @file) end |