Class: Hydra::Messages::Worker::RunFile

Inherits:
Hydra::Message show all
Defined in:
lib/hydra/message/worker_messages.rb

Overview

Message telling the Runner to run a file

Direct Known Subclasses

Master::RunFile

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Hydra::Message

build, #initialize

Constructor Details

This class inherits a constructor from Hydra::Message

Instance Attribute Details

#fileObject

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

#serializeObject

:nodoc:



15
16
17
# File 'lib/hydra/message/worker_messages.rb', line 15

def serialize #:nodoc:
  super(:file => @file)
end