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