travis-api/lib/travis/services/delete_caches.rb
Aakriti Gupta 65f1a29d86 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-20 11:22:25 +02:00

16 lines
271 B
Ruby

require 'travis/services/base'
module Travis
module Services
class DeleteCaches < Base
register :delete_caches
def run
caches = run_service(:find_caches, params)
caches.each { |c| c.destroy }
caches
end
end
end
end