blob: a49c20c9a982739fd3643e2461aa29e254871ff3 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 | 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|
      run_info(global, options, args)
    end
  end
  private
  def run_info(global, options, args)
    require 'leap_cli/ssh'
    nodes = manager.filter!(args)
    SSH.remote_command(nodes, options) do |ssh, host|
      ssh.scripts.debug
    end
  end
end; end
 |