Sha256: d262f5a072efe80c5a8caa4689072ef88fab0bdde0d932b2d53ac31bbbc3bef2
Contents?: true
Size: 573 Bytes
Versions: 12
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true module Uricp::Strategy class RbdSweeper include Uricp::Strategy::Common def appropriate? return proposal if options['rbd_snapshot'] && rbd_sequence_complete? debug "#{self.class.name}: not appropriate" false end def command "rbd snap unprotect --id #{rbd_id} '#{options['rbd_snapshot']}';" \ "rbd snap rm --id #{rbd_id} '#{options['rbd_snapshot']}';" end def proposal @proposed_options = options.dup @proposed_options.delete('rbd_snapshot') self end end end
Version data entries
12 entries across 12 versions & 1 rubygems