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.
18
19
20
21
22
23
|
# File 'lib/spud/build_tools/task.rb', line 18
def initialize(name:, filename:)
@name = name
@filename = filename
Runtime.tasks[name.to_s] = self
end
|
Instance Attribute Details
9
10
11
|
# File 'lib/spud/build_tools/task.rb', line 9
def args
@args
end
|
#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.
12
13
14
|
# File 'lib/spud/build_tools/task.rb', line 12
def self.mount!
raise NotImplementedError
end
|
Instance Method Details
#invoke(positional = [], named = {}) ⇒ Object
28
29
30
|
# File 'lib/spud/build_tools/task.rb', line 28
def invoke(positional = [], named = {})
raise NotImplementedError
end
|