Class: GitCompound::Task::Task

Inherits:
Object
  • Object
show all
Extended by:
Logger::Debugger
Defined in:
lib/git_compound/task/task.rb,
lib/git_compound/logger/debug/task.rb

Overview

Debug messages for Task

Direct Known Subclasses

TaskAll, TaskEach, TaskSingle

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logger::Debugger

debug_after, debug_before

Constructor Details

#initialize(name, manifest, &block) ⇒ Task

Returns a new instance of Task.

Raises:



10
11
12
13
14
15
16
17
# File 'lib/git_compound/task/task.rb', line 10

def initialize(name, manifest, &block)
  raise GitCompoundError,
        "Block not given for task `#{name}`" unless block

  @name       = name
  @manifest   = manifest
  @block      = block
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/git_compound/task/task.rb', line 8

def name
  @name
end

Instance Method Details

#executeObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/git_compound/task/task.rb', line 19

def execute
  raise NotImplementedError
end