Class: PKGWizard::BuildBot::Webapp

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/pkg-wizard/commands/build_bot.rb

Instance Method Summary collapse

Instance Method Details

#find_job_path(name) ⇒ Object



103
104
105
# File 'lib/pkg-wizard/commands/build_bot.rb', line 103

def find_job_path(name)
  (Dir["failed/job_*"] + Dir["success/job_*"]).find { |j| File.basename(j) == name }
end