Class: Skytap::Commands::Show
- Defined in:
- lib/skytap/commands/http.rb
Instance Attribute Summary
Attributes inherited from Base
#args, #command_options, #error, #global_options, #invoker, #logger
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from HttpBase
#delete, #encode_body, #get, #join_paths, make_for, #options_for_request, #parent_path, #path, #post, #put, #request, #requester, #resource, #resource_path, #root_path
Methods inherited from Base
#api_token, #ask, #ask_param, #command_line_params, command_name, #composed_params, #expected_options, #file_params, #find_id, #initialize, #interactive_params, #invoke, make_from, #noninteractive_params, #programmatic?, #solicit_user_input?, #username
Methods included from Help
#description, #help!, #help?, included, #parameters, #synopsis, #version?
Constructor Details
This class inherits a constructor from Skytap::Commands::Base
Class Method Details
.default_description ⇒ Object
136 137 138 |
# File 'lib/skytap/commands/http.rb', line 136 def self.default_description "Show specified #{parent.command_name.gsub('_', ' ')}" end |
Instance Method Details
#expected_args ⇒ Object
132 133 134 |
# File 'lib/skytap/commands/http.rb', line 132 def expected_args super.merge('id' => "ID or URL of #{resource} to show") end |
#run! ⇒ Object
140 141 142 |
# File 'lib/skytap/commands/http.rb', line 140 def run! get(path) end |