lib/ruby_fly/commands/status.rb in ruby_fly-0.29.0 vs lib/ruby_fly/commands/status.rb in ruby_fly-0.30.0.pre.1

- old
+ new

@@ -36,9 +36,17 @@ sub = sub.with_option('-t', target) sub end end + def do_around(opts, &block) + begin + block.call(opts) + rescue Open4::SpawnError => e + raise e unless e.status.exitstatus == 1 + end + end + def do_after(opts) output = stdout.string error = stderr.string return :logged_in if output =~ /logged in successfully/ \ No newline at end of file