diff options
author | elijah <elijah@riseup.net> | 2013-12-05 16:26:36 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-12-05 16:26:36 -0800 |
commit | 3e7c500dda3a1998a892a9ee06dabf5a2fa70f38 (patch) | |
tree | 8a810abcf30c90d08403f334c36dbc8b8c59e7a6 /lib/leap_cli/commands/test.rb | |
parent | 4199766b4da7edf170895600ce8eeb8970800769 (diff) |
added no-deploy check and simple `leap test run`.
Diffstat (limited to 'lib/leap_cli/commands/test.rb')
-rw-r--r-- | lib/leap_cli/commands/test.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index c240a70..7066241 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -12,7 +12,11 @@ module LeapCli; module Commands test.desc 'Run tests.' test.command :run do |run| run.action do |global_options,options,args| - log 'not yet implemented' + manager.filter!(args).each_node do |node| + ssh_connect(node) do |ssh| + ssh.run(test_cmd) + end + end end end @@ -21,6 +25,10 @@ module LeapCli; module Commands private + def test_cmd + "#{PUPPET_DESTINATION}/bin/run_tests" + end + # # generates a whole bunch of openvpn configs that can be used to connect to different openvpn gateways # |