You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: Need a non rescue way to handle of success/failure.
Solution: Add fluent methods to then and catch
sh(meta: true)domake!("build").thendo |result|
puts"[✓] make build completed in {result.meta.timestamp}s"end.catchdoputs"[✗] make build failed"end.exec# Another waywhen_finish=proc{puts"Success"}when_fail=proc{puts"Failed"}make("build",_then: when_finish,_catch: when_fail)end
Activity