module TachikomaAi::TachikomaExtention
Public Instance Methods
pull_request()
click to toggle source
Calls superclass method
# File lib/tachikoma_ai/tachikoma_extention.rb, line 12 def pull_request @pull_request_body = @pull_request_body.to_s if @strategy Dir.chdir("#{Tachikoma.repos_path}/#{@build_for}") do @pull_request_body += "\n\n" + @strategy.pull_request_body end end rescue p $ERROR_INFO ensure super end
run(strategy)
click to toggle source
Calls superclass method
# File lib/tachikoma_ai/tachikoma_extention.rb, line 3 def run(strategy) begin @strategy = TachikomaAi::Strategies.const_get(strategy.capitalize).new rescue NameError raise LoadError, "Could not find matching strategy for #{strategy}." end super end