travis-api/lib/travis/api/v3/services/crons/start.rb
Christopher Weyand 6c839aebec feature flag test
2016-03-14 11:03:41 +01:00

11 lines
199 B
Ruby

module Travis::API::V3
class Services::Crons::Start < Service
def run!
raise InsufficientAccess unless Travis::Features.feature_active?(:cron)
query.start_all()
end
end
end