Sha256: cc39775273ec3f50a0c5a4e0041a5cb57fe40ef53f35af04172347b2d2ff58da

Contents?: true

Size: 753 Bytes

Versions: 1

Compression:

Stored size: 753 Bytes

Contents

# encoding: UTF-8
# frozen_string_literal: true

require 'nrser/refinements/types'
using NRSER::Types


# Namespace
# =======================================================================

module  Locd
module  CLI
module  Command


# Definitions
# =======================================================================

class Agent < Base
  
  desc            'status',
                  "Print agent status"
  
  include_shared  t[ groups: :pattern ]
  
  def status
    agent = find_only! pattern
    respond \
      label:  agent.label,
      status: agent.status.to_h( compact: false )
  end

end


# /Namespace
# =======================================================================

end # module  Command
end # module  CLI
end # module  Locd

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locd-0.1.13 lib/locd/cli/command/agent/status.rb