Sha256: d986ae0d50e89d98bb2ed9d35067133cf98c87a61e1cbbffa6baf686af1b72d2

Contents?: true

Size: 723 Bytes

Versions: 1

Compression:

Stored size: 723 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  "start",    "Start an agent"

  include_shared    t[ groups: t.HasAny( :pattern, :multi, :start ) ]
  
  def start
    find_multi!( pattern ).
      each { |agent| agent.start **option_kwds( groups: :start ) }
  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/start.rb