Class: Gitomator::BaseTask

Inherits:
Object
  • Object
show all
Defined in:
lib/gitomator/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ BaseTask

Returns a new instance of BaseTask.

Parameters:



13
14
15
# File 'lib/gitomator/task.rb', line 13

def initialize(context)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



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

def context
  @context
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

Instance Method Details

#ciObject



42
43
44
# File 'lib/gitomator/task.rb', line 42

def ci
  context.ci
end

#gitObject



30
31
32
# File 'lib/gitomator/task.rb', line 30

def git
  context.git
end

#hostingObject



34
35
36
# File 'lib/gitomator/task.rb', line 34

def hosting
  context.hosting
end

#runObject

Subclasses should override this method



21
22
23
# File 'lib/gitomator/task.rb', line 21

def run
  raise "Unimplemented"
end

#taggingObject



38
39
40
# File 'lib/gitomator/task.rb', line 38

def tagging
  context.tagging
end