Class: Agent::Lock::CLI::Commands::ShowRepos
- Defined in:
- lib/agent/lock/cli/commands/show.rb
Overview
alock show repos.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Show
Methods inherited from Base
Constructor Details
This class inherits a constructor from Agent::Lock::CLI::Commands::Base
Instance Method Details
#call(**options) ⇒ void
This method returns an undefined value.
111 112 113 114 115 116 |
# File 'lib/agent/lock/cli/commands/show.rb', line 111 def call(**) found = index() rows = found.repos.map { |repo| row(repo) } table(rows, header: %w[Namespace Locks Memory], empty: "No locks in Redis.") warn_legacy(found.legacy_count) end |