Class: Spud::BuildTools::Task
- Inherits:
-
Object
- Object
- Spud::BuildTools::Task
show all
- Defined in:
- lib/spud/build_tools/task.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(name:, filename:) ⇒ Task
Returns a new instance of Task.
16
17
18
19
20
21
|
# File 'lib/spud/build_tools/task.rb', line 16
def initialize(name:, filename:)
@name = name
@filename = filename
Runtime.tasks[name.to_s] = self
end
|
Instance Attribute Details
#filename ⇒ String
7
8
9
|
# File 'lib/spud/build_tools/task.rb', line 7
def filename
@filename
end
|
#name ⇒ String
5
6
7
|
# File 'lib/spud/build_tools/task.rb', line 5
def name
@name
end
|
Class Method Details
.mount! ⇒ void
This method returns an undefined value.
10
11
12
|
# File 'lib/spud/build_tools/task.rb', line 10
def self.mount!
raise NotImplementedError
end
|
Instance Method Details
31
32
33
|
# File 'lib/spud/build_tools/task.rb', line 31
def args
@args ||= TaskArgs.new([])
end
|
#invoke(positional = [], named = {}) ⇒ Object
26
27
28
|
# File 'lib/spud/build_tools/task.rb', line 26
def invoke(positional = [], named = {})
raise NotImplementedError
end
|