Sha256: 712637cc4cb5f6e41212e7a1ccaae3fa6fefc7a7e8306984c3154c1e73580323
Contents?: true
Size: 989 Bytes
Versions: 3
Compression:
Stored size: 989 Bytes
Contents
# frozen_string_literal: true require "thor" require_relative "../session" require_relative "./constants" module NeetoDeploy class CLI module Redis class Get < CLI::Base include Constants include Session attr_reader :addon_name, :key def initialize(options) super() @addon_name = options[:addon] @key = options[:key] end def run ui.execute_with_loading("Fetching info...") do send_request end print_output end private def send_request @response = send_patch_request( redis_addon_url, { addon_name:, command: "CONFIG get #{key}" } ) end def print_output ui.error(@response["error"]) and return unless @response.success? ui.success(@response["message"]) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
neetodeploy-1.1.13 | lib/neeto_deploy/cli/redis/get.rb |
neetodeploy-1.1.12 | lib/neeto_deploy/cli/redis/get.rb |
neetodeploy-1.1.11 | lib/neeto_deploy/cli/redis/get.rb |