Class: Megatest::CIService
- Inherits:
-
Object
- Object
- Megatest::CIService
- Defined in:
- lib/megatest/config.rb
Defined Under Namespace
Classes: Buildkite, CircleCI, Heroku, Megatest, Travis
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Class Method Summary collapse
Instance Method Summary collapse
- #configure(_config) ⇒ Object
-
#initialize(env) ⇒ CIService
constructor
A new instance of CIService.
Constructor Details
#initialize(env) ⇒ CIService
Returns a new instance of CIService.
43 44 45 |
# File 'lib/megatest/config.rb', line 43 def initialize(env) @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
41 42 43 |
# File 'lib/megatest/config.rb', line 41 def env @env end |
Class Method Details
.configure(config, env) ⇒ Object
34 35 36 37 38 |
# File 'lib/megatest/config.rb', line 34 def configure(config, env) @implementations.each do |service| service.new(env).configure(config) end end |
.inherited(base) ⇒ Object
29 30 31 32 |
# File 'lib/megatest/config.rb', line 29 def inherited(base) super @implementations << base end |
Instance Method Details
#configure(_config) ⇒ Object
47 48 49 |
# File 'lib/megatest/config.rb', line 47 def configure(_config) raise NotImplementedError end |