From aec082688b8c20b5cd549feb81d1003847d5f744 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 12 Apr 2016 11:07:26 -0700 Subject: leap_cli: rename 'debug' command to 'info' command, since --debug is already a thing. --- lib/leap_cli/commands/debug.rb | 15 --------------- lib/leap_cli/commands/info.rb | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) delete mode 100644 lib/leap_cli/commands/debug.rb create mode 100644 lib/leap_cli/commands/info.rb diff --git a/lib/leap_cli/commands/debug.rb b/lib/leap_cli/commands/debug.rb deleted file mode 100644 index a969b752..00000000 --- a/lib/leap_cli/commands/debug.rb +++ /dev/null @@ -1,15 +0,0 @@ -module LeapCli; module Commands - - desc 'Output debug information.' - long_desc 'The FILTER can be the name of a node, service, or tag.' - arg_name 'FILTER' - command [:debug, :d] 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 diff --git a/lib/leap_cli/commands/info.rb b/lib/leap_cli/commands/info.rb new file mode 100644 index 00000000..52225a94 --- /dev/null +++ b/lib/leap_cli/commands/info.rb @@ -0,0 +1,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 -- cgit v1.2.3