Sha256: 2a3101c2ba745187ea5afd7b591b9c2077d1dd9e33c0b7ef4f72bea57b2e3d2d

Contents?: true

Size: 748 Bytes

Versions: 1

Compression:

Stored size: 748 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            "stop",
                  "Stop an agent"
  
  include_shared  t[ groups: t.HasAny( :pattern, :multi, :stop ) ]
  
  def stop
    kwds = option_kwds groups: :stop
    find_multi!( pattern ).each { |agent| agent.stop **kwds }
  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/stop.rb