Class: Ci::Runners::UnregisterRunnerService
- Inherits:
-
Object
- Object
- Ci::Runners::UnregisterRunnerService
- Defined in:
- app/services/ci/runners/unregister_runner_service.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#runner ⇒ Object
readonly
Returns the value of attribute runner.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(runner, author) ⇒ UnregisterRunnerService
constructor
A new instance of UnregisterRunnerService.
Constructor Details
#initialize(runner, author) ⇒ UnregisterRunnerService
Returns a new instance of UnregisterRunnerService.
10 11 12 13 |
# File 'app/services/ci/runners/unregister_runner_service.rb', line 10 def initialize(runner, ) @runner = runner @author = end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
6 7 8 |
# File 'app/services/ci/runners/unregister_runner_service.rb', line 6 def @author end |
#runner ⇒ Object (readonly)
Returns the value of attribute runner.
6 7 8 |
# File 'app/services/ci/runners/unregister_runner_service.rb', line 6 def runner @runner end |
Instance Method Details
#execute ⇒ Object
15 16 17 18 19 |
# File 'app/services/ci/runners/unregister_runner_service.rb', line 15 def execute runner.destroy! ServiceResponse.success end |