module Pwrake::BranchApplication
The TaskManager
module is a mixin for managing tasks.
Public Instance Methods
run_branch(r,w)
click to toggle source
# File lib/pwrake/branch/branch_application.rb, line 9 def run_branch(r,w) init("pwrake_branch") opts = Marshal.load(r) if !opts.kind_of?(Hash) raise "opts is not a Hash: opts=#{opts.inspect}" end @branch = Branch.new(opts,r,w) opts.feedback_options load_rakefile w.puts "pwrake_branch start" w.flush begin @branch.run rescue => e Log.fatal e $stderr.puts e $stderr.puts e.backtrace @branch.kill ensure @branch.finish end end
run_branch_in_thread(r,w,opts)
click to toggle source
# File lib/pwrake/branch/branch_application.rb, line 32 def run_branch_in_thread(r,w,opts) @branch = Branch.new(opts,r,w) begin @branch.run rescue => e Log.fatal e $stderr.puts e $stderr.puts e.backtrace @branch.kill ensure @branch.finish end end