module Uricp::Strategy class RbdFlattener include Uricp::Strategy::Common def appropriate? return proposal if options['rbd_flatten'] && rbd_sequence_complete? debug "#{self.class.name}: not appropriate" false end def command "rbd flatten --id #{rbd_id} --no-progress '#{options['rbd_flatten']}' && " end def proposal @proposed_options = options.dup @proposed_options.delete('rbd_flatten') self end end end