module ::Whenever module Job class Beanstalk < Whenever::Job::Default def output path_required %Q(#{File.join(@path, 'script', 'beanstalk-queue')} -e #{@environment} #{task.inspect}) end end end class JobList def beanstalk(task, options = {}) options.reverse_merge!(:environment => @environment, :path => @path) options[:class] = Whenever::Job::Beanstalk command(task, options) end end end