Sha256: 9a479ced345a9ca364b388f97fe3e717d1d42e5d38eafe36b0defa0976a75bc0
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uricp-0.0.24 | lib/uricp/strategy/rbd_sweeper.rb |
uricp-0.0.23 | lib/uricp/strategy/rbd_sweeper.rb |
uricp-0.0.22 | lib/uricp/strategy/rbd_sweeper.rb |