Class: Gitomator::BaseTask
- Inherits:
-
Object
- Object
- Gitomator::BaseTask
- Defined in:
- lib/gitomator/task.rb
Direct Known Subclasses
Task::BaseReposTask, Task::SetupTeam, Task::UpdateRepoAccessPermissions
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #ci ⇒ Object
- #git ⇒ Object
- #hosting ⇒ Object
-
#initialize(context) ⇒ BaseTask
constructor
A new instance of BaseTask.
-
#run ⇒ Object
Subclasses should override this method.
- #tagging ⇒ Object
Constructor Details
#initialize(context) ⇒ BaseTask
Returns a new instance of BaseTask.
13 14 15 |
# File 'lib/gitomator/task.rb', line 13 def initialize(context) @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/gitomator/task.rb', line 8 def context @context end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/gitomator/task.rb', line 7 def logger @logger end |
Instance Method Details
#ci ⇒ Object
42 43 44 |
# File 'lib/gitomator/task.rb', line 42 def ci context.ci end |
#git ⇒ Object
30 31 32 |
# File 'lib/gitomator/task.rb', line 30 def git context.git end |
#hosting ⇒ Object
34 35 36 |
# File 'lib/gitomator/task.rb', line 34 def hosting context.hosting end |
#run ⇒ Object
Subclasses should override this method
21 22 23 |
# File 'lib/gitomator/task.rb', line 21 def run raise "Unimplemented" end |
#tagging ⇒ Object
38 39 40 |
# File 'lib/gitomator/task.rb', line 38 def tagging context.tagging end |