Sha256: da063a77caf7091039fae2db132c55e225199fd55e166d421057239ea52fe948
Contents?: true
Size: 407 Bytes
Versions: 19
Compression:
Stored size: 407 Bytes
Contents
class ShutdownManager def initialize(args) @protocol = args.fetch(:protocol) @job_state = args.fetch(:job_state) end def cancel_job @protocol.cancel_job if @protocol ensure cancel_job_state end private def cancel_job_state @job_state.cancel if @job_state ensure disconnect_protocol end def disconnect_protocol @protocol.disconnect if @protocol end end
Version data entries
19 entries across 19 versions & 1 rubygems