Module: Saber::Task

Defined in:
lib/saber/task.rb,
lib/saber/task/chd.rb,
lib/saber/task/base.rb,
lib/saber/task/make.rb,
lib/saber/task/send.rb,
lib/saber/task/clean.rb,
lib/saber/task/upload.rb,
lib/saber/task/generate.rb,
lib/saber/task/find_uploads.rb

Overview

Usage

require "saber/task/make"
Saber::Task["make"].invoke

Define a new task

class HelloWorld < Task::Base
  def invoke(*args, &blk)
    p args
  end
end

Task.hello_world(1, 2)   ->  [1, 2]

Defined Under Namespace

Classes: Base, CHD, Clean, FindUploads, Generate, Make, Send, Upload

Constant Summary collapse

@@tasks =
{}

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



25
26
27
# File 'lib/saber/task.rb', line 25

def [](name)
  tasks[name]
end