Class: Saber::Task::Base

Inherits:
Thor
  • Object
show all
Defined in:
lib/saber/task/base.rb

Direct Known Subclasses

CHD, Clean, FindUploads, Generate, Make, Send, Upload

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



17
18
19
20
# File 'lib/saber/task/base.rb', line 17

def initialize(*)
  super
  self.options = self.options.dup
end

Class Method Details

.inherited(child) ⇒ Object



7
8
9
# File 'lib/saber/task/base.rb', line 7

def inherited(child)
  Task.tasks[child.name.demodulize.underscore] = child
end

.invoke(*args) ⇒ Object

delegate to #invoke



12
13
14
# File 'lib/saber/task/base.rb', line 12

def invoke(*args)
  new.invoke(*args)
end