lib/chef/knife/vcenter_vm_delete.rb
def validate_params!
          if @name_args.empty?
            ui.error("You must supply the name of the virtual machine to delete.")
            exit(1) if @name_args.empty?
          end
        end
# rubocop:disable Style/GuardClause
# Validates the parameters to make sure we're good.
#
disable Style/GuardClause
Validates the parameters to make sure we're good.
disable Style / GuardClause Validates the parameters to make sure we ' re good .
def validate_params!
          if @name_args.empty?
            ui.error("You must supply the name of the virtual machine to delete.")
            exit(1) if @name_args.empty?
          end
        end
def validate_params! if @name_args . empty? ui . error ( "You must supply the name of the virtual machine to delete." ) exit ( 1 ) if @name_args . empty? end end
rubocop:disable Style/GuardClause
Validates the parameters to make sure we're good.
rubocop : disable Style / GuardClause Validates the parameters to make sure we ' re good .