Method: Uricp::Strategy::RbdCachedPut#command
- Defined in:
- lib/uricp/strategy/rbd_cached_put.rb
#command ⇒ Object
18 19 20 21 22 |
# File 'lib/uricp/strategy/rbd_cached_put.rb', line 18 def command "rbd clone --id #{rbd_id} '#{rbd_image_spec(from)}' "\ "'#{rbd_image_spec(to)}' || { [ $? -eq 22 ] && "\ "rbd create --id #{rbd_id} -s 0 '#{rbd_image_spec(to)}'; };" end |