Class: Agent::Lock::CLI::Commands::Show Abstract

Inherits:
Base
  • Object
show all
Includes:
Dry::CLI::UI
Defined in:
lib/agent/lock/cli/commands/show.rb

Overview

This class is abstract.

Redis only. These commands read every repository in one Redis, so --dir would name a checkout they never open, and the file store has nothing for them to read.

Direct Known Subclasses

ShowRepo, ShowRepos

Instance Attribute Summary

Attributes inherited from Base

#launcher

Class Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Agent::Lock::CLI::Commands::Base

Class Method Details

.inherited(subclass) ⇒ void

This method returns an undefined value.

Parameters:

  • subclass (Class<Show>)


23
24
25
26
27
28
# File 'lib/agent/lock/cli/commands/show.rb', line 23

def self.inherited(subclass)
  super
  subclass.option :redis_url, type: :string, aliases: ["-u"],
                              desc: "The one Redis to use, with no fallback " \
                                    "(env: AGENT_LOCK_REDIS_URL, else REDIS_URL)"
end