diff options
author | elijah <elijah@riseup.net> | 2016-06-21 17:38:00 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-06-21 17:38:00 -0700 |
commit | 7818abd6a89a882cabb3d2a14a572308d9e959ff (patch) | |
tree | 89927201e4406af2334c4ef97cbe58750426ef3f /lib/leap_cli/commands/test.rb | |
parent | 3df7a57d866cf1e6eda9bb9e3fe19c7387ec6c1d (diff) |
minor ruby linting
Diffstat (limited to 'lib/leap_cli/commands/test.rb')
-rw-r--r-- | lib/leap_cli/commands/test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index 73207b31..f506d849 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -8,7 +8,7 @@ module LeapCli; module Commands run.switch 'continue', :desc => 'Continue over errors and failures (default is --no-continue).', :negatable => true run.action do |global_options,options,args| test_order = File.join(Path.platform, 'tests/order.rb') - if File.exists?(test_order) + if File.exist?(test_order) require test_order end manager.filter!(args).names_in_test_dependency_order.each do |node_name| @@ -17,7 +17,7 @@ module LeapCli; module Commands ssh_connect(node) do |ssh| ssh.run(test_cmd(options)) end - rescue Capistrano::CommandError => exc + rescue Capistrano::CommandError if options[:continue] exit_status(1) else |