Class: NeetoDeploy::CLI::Redis::Get
- Defined in:
- lib/neeto_deploy/cli/redis/get.rb
Constant Summary
Constants included from Constants
Constants::AVAILABLE_REDIS_CONFIGS_TO_EDIT, Constants::NEETO_DEPLOY_CLI_API_ADDONS_REDIS_URL
Instance Attribute Summary collapse
-
#addon_name ⇒ Object
readonly
Returns the value of attribute addon_name.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options) ⇒ Get
constructor
A new instance of Get.
- #run ⇒ Object
Methods included from Session
#common_body, require_app_option, #send_delete_request, #send_get_request, #send_patch_request, #send_post_request
Methods included from Constants
#available_configs_to_edit, #console_session_base_url, #redis_addon_url
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ Get
Returns a new instance of Get.
16 17 18 19 20 |
# File 'lib/neeto_deploy/cli/redis/get.rb', line 16 def initialize() super() @addon_name = [:addon] @key = [:key] end |
Instance Attribute Details
#addon_name ⇒ Object (readonly)
Returns the value of attribute addon_name.
14 15 16 |
# File 'lib/neeto_deploy/cli/redis/get.rb', line 14 def addon_name @addon_name end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
14 15 16 |
# File 'lib/neeto_deploy/cli/redis/get.rb', line 14 def key @key end |
Instance Method Details
#run ⇒ Object
22 23 24 25 26 27 |
# File 'lib/neeto_deploy/cli/redis/get.rb', line 22 def run ui.execute_with_loading("Fetching info...") do send_request end print_output end |