class Uricp::Strategy::RbdSweeper
Public Instance Methods
appropriate?()
click to toggle source
# File lib/uricp/strategy/rbd_sweeper.rb, line 5 def appropriate? return proposal if options['rbd_snapshot'] && sequence_complete? debug "#{self.class.name}: not appropriate" false end
command()
click to toggle source
# File lib/uricp/strategy/rbd_sweeper.rb, line 12 def command "rbd snap rm --id #{rbd_id} '#{options['rbd_snapshot']}';" end
proposal()
click to toggle source
# File lib/uricp/strategy/rbd_sweeper.rb, line 16 def proposal @proposed_options = options.dup @proposed_options.delete('rbd_snapshot') self end