summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/info.rb
blob: 52225a9429230ecc4c922e2bb85125a5de9ec9ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module LeapCli; module Commands

  desc 'Prints information regarding facts, history, and running processes for a node or nodes.'
  long_desc 'The FILTER can be the name of a node, service, or tag.'
  arg_name 'FILTER'
  command [:info] do |c|
    c.action do |global,options,args|
      nodes = manager.filter!(args)
      ssh_connect(nodes, connect_options(options)) do |ssh|
        ssh.leap.debug
      end
    end
  end

end; end