class Hydra::RemoteTask

Setup a task that will be run across all remote workers

Hydra::RemoteTask.new('db:reset')

Then you can run:

rake hydra:remote:db:reset

Public Class Methods

new(name, command=nil) { |self| ... } click to toggle source

Create a new hydra remote task with the given name. The task will be named hydra:remote:<name>

# File lib/hydra/tasks.rb, line 269
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