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
14 15 16 |
# File 'lib/hydra/message/worker_messages.rb', line 14 def file @file end |
Instance Method Details
#handle(runner) ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/hydra/message/worker_messages.rb', line 18 def handle(runner) #:nodoc: runner.run_file(@file) end |
#serialize ⇒ Object
:nodoc:
15 16 17 |
# File 'lib/hydra/message/worker_messages.rb', line 15 def serialize #:nodoc: super(:file => @file) end |