Method: Larrow::Qingcloud::Snapshot.create
- Defined in:
- lib/larrow/qingcloud/snapshot.rb
.create(resource_id) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/larrow/qingcloud/snapshot.rb', line 14 def self.create resource_id result = conn.get 'CreateSnapshots', :'resources.1' => resource_id info "snapshot added: #{result}" result['snapshots'].map do |id| promise(timeout:90){ new(id).wait_for :available } end end |