Class: Gitomator::Task::EnableDisableCI
- Inherits:
-
BaseReposTask
- Object
- BaseTask
- BaseReposTask
- Gitomator::Task::EnableDisableCI
- Defined in:
- lib/gitomator/task/enable_disable_ci.rb
Overview
Abstract parent class
Instance Attribute Summary
Attributes inherited from BaseReposTask
Attributes inherited from BaseTask
Instance Method Summary collapse
-
#initialize(context, repos, opts = {}) ⇒ EnableDisableCI
constructor
A new instance of EnableDisableCI.
Methods inherited from BaseReposTask
#after_processing_all_repos, #before_processing_any_repos, #process_repo, #process_repo_error, #run
Methods inherited from BaseTask
#ci, #git, #hosting, #run, #tagging
Constructor Details
#initialize(context, repos, opts = {}) ⇒ EnableDisableCI
Returns a new instance of EnableDisableCI.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/gitomator/task/enable_disable_ci.rb', line 17 def initialize(context, repos, opts={}) super(context, repos) if opts[:sync] before_processing_any_repos do logger.info "Syncing CI service (this may take a little while) ..." ci.sync() while ci.syncing? print "." sleep 1 end puts "" logger.info "CI service synchronized" end end end |