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


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

#serializeObject

:nodoc:


21
22
23
# File 'lib/hydra/message/worker_messages.rb', line 21

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