Class: Chef::Knife::Cloud::VraServerShow
- Inherits:
-
ServerShowCommand
- Object
- ServerShowCommand
- Chef::Knife::Cloud::VraServerShow
- Includes:
- VraServiceOptions, ServerShowOptions
- Defined in:
- lib/chef/knife/vra_server_show.rb
Instance Method Summary collapse
Methods included from VraServiceOptions
Instance Method Details
#validate_params! ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/chef/knife/vra_server_show.rb', line 41 def validate_params! if @name_args.empty? ui.error("You must supply a Resource ID for a server to display.") exit 1 end if @name_args.size > 1 ui.error("You may only supply one Resource ID.") exit 1 end super end |