lib/chef/knife/profitbricks_volume_detach.rb in knife-profitbricks-1.0.0 vs lib/chef/knife/profitbricks_volume_detach.rb in knife-profitbricks-1.1.1
- old
+ new
@@ -9,15 +9,17 @@
option :datacenter_id,
short: '-D DATACENTER_UUID',
long: '--datacenter-id DATACENTER_UUID',
description: 'The UUID of the data center',
- proc: proc { |datacenter_id| Chef::Config[:knife][:datacenter_id] = datacenter_id }
+ proc: proc { |datacenter_id| Chef::Config[:knife][:datacenter_id] = datacenter_id },
+ required: true
option :server_id,
short: '-S SERVER_UUID',
long: '--server-id SERVER_UUID',
- description: 'The UUID of the server'
+ description: 'The UUID of the server',
+ required: true
def run
connection
@name_args.each do |volume_id|
begin