Class: Gitomator::Service::CI

Inherits:
BaseService show all
Defined in:
lib/gitomator/service/ci.rb

Instance Attribute Summary

Attributes inherited from BaseService

#provider

Instance Method Summary collapse

Methods inherited from BaseService

#after_each_service_call, #before_each_service_call, #on_service_call_error, #service_call

Constructor Details

#initialize(provider, opts = {}) ⇒ CI

Returns a new instance of CI.



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

def initialize(provider, opts = {})
  super(provider, opts)
end

Instance Method Details

#ci_enabled?(repo) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/gitomator/service/ci.rb', line 29

def ci_enabled?(repo)
  service_call(__callee__, repo)
end

#disable_ci(repo, opts = {}) ⇒ Object



25
26
27
# File 'lib/gitomator/service/ci.rb', line 25

def disable_ci(repo, opts={})
  service_call(__callee__, repo, opts)
end

#enable_ci(repo, opts = {}) ⇒ Object



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

def enable_ci(repo, opts={})
  service_call(__callee__, repo, opts)
end

#sync(blocking = false, opts = {}) ⇒ Object



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

def sync(blocking=false, opts={})
  service_call(__callee__, blocking, opts)
end

#syncing?(opts = {}) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/gitomator/service/ci.rb', line 17

def syncing?(opts={})
  service_call(__callee__, opts)
end