class Chef::Knife::OneandoneBlockStorageDetach

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/oneandone_block_storage_detach.rb, line 15
def run
  $stdout.sync = true

  init_client

  block_storage = OneAndOne::BlockStorage.new
  response = block_storage.detach_server(block_storage_id: config[:id])

  formated_output(response, true)
  puts "Block storage detached from server #{ui.color('updated', :bold)}"
end