Class: Hydra::RemoteTask
- Includes:
- Open3
- Defined in:
- lib/hydra/tasks.rb
Overview
Instance Attribute Summary
Attributes inherited from Task
#autosort, #config, #environment, #files, #listeners, #name, #serial, #verbose
Instance Method Summary collapse
-
#initialize(name, command = nil) {|_self| ... } ⇒ RemoteTask
constructor
Create a new hydra remote task with the given name.
Methods inherited from Task
Constructor Details
#initialize(name, command = nil) {|_self| ... } ⇒ RemoteTask
Create a new hydra remote task with the given name. The task will be named hydra:remote:<name>
246 247 248 249 250 251 252 253 254 255 256 |
# File 'lib/hydra/tasks.rb', line 246 def initialize(name, command=nil) @name = name @command = command yield self if block_given? @config = find_config_file if @config define else task "hydra:remote:#{@name}" do ; end end end |