Sha256: 5ff510a79102d59cf59584a63f21ca50b94db932195b858b206da13fe1228813
Contents?: true
Size: 958 Bytes
Versions: 1
Compression:
Stored size: 958 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 "rm PATTERN [OPTIONS]", "Remove (uninstall, delete) a agent" map remove: :rm include_shared t[ groups: t.has_any( :pattern, :multi ) ] option :logs, desc: "Remove logs too", type: :boolean, default: false def rm kwds = option_kwds :logs find_multi!( pattern ).each { |agent| agent.remove **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/rm.rb |