class Chef::Knife::OneandoneBlockStorageAttach
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/oneandone_block_storage_attach.rb, line 20 def run $stdout.sync = true init_client block_storage = OneAndOne::BlockStorage.new response = block_storage.attach_server(block_storage_id: config[:id], server_id: config[:server_id]) formated_output(response, true) puts "Block storage attached to server #{ui.color('updated', :bold)}" end