Sha256: 13c4f45a40b8b79e8272d26564729b451e28365e5b26bd19215d96847b63c664
Contents?: true
Size: 1.11 KB
Versions: 5
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require "thor" require_relative "./set" require_relative "./get" require_relative "./reset_stats" module NeetoDeploy class CLI module Redis class Commands < Thor desc "set", "Set redis config" option :addon_name, type: :string, aliases: "-n", required: true, desc: "Addon name" option :key, type: :string, aliases: "-k", required: true, desc: "CONFIG name" option :value, type: :string, aliases: "-v", required: true, desc: "New value for the CONFIG" def set Set.new(options).run end desc "get", "Get redis config" option :addon_name, type: :string, aliases: "-n", required: true, desc: "Addon name" option :key, type: :string, aliases: "-k", required: true, desc: "CONFIG name" def get Get.new(options).run end desc "reset-stats", "Resets the statistics of the Redis instance" option :addon_name, type: :string, aliases: "-n", required: true, desc: "Addon name" def reset_stats ResetStats.new(options).run end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems