travis-api/lib/travis/services/find_repo.rb
Aakriti Gupta c6a1eda572 Move travis-core files from /vendor to /lib.
- Re-factor
- Remove code for notifications
- Remove addons
- Remove travis-core gem.
- Ignore logs directory only
- Move core tests to spec/lib
2016-07-28 15:09:08 +02:00

24 lines
356 B
Ruby

require 'travis/services/base'
module Travis
module Services
class FindRepo < Base
register :find_repo
def run(options = {})
result
end
def updated_at
result.try(:updated_at)
end
private
def result
@result ||= scope(:repository).find_by(params)
end
end
end
end