class GitSu::Runner
Public Class Methods
new(output)
click to toggle source
# File lib/gitsu/runner.rb, line 19 def initialize(output) @output = output end
Public Instance Methods
run() { || ... }
click to toggle source
# File lib/gitsu/runner.rb, line 23 def run begin yield rescue Interrupt => interrupted @output.puts "Interrupted" rescue StandardError => error @output.puts error.message end end