Conversation
lib/travis/model/job/queue.rb
Outdated
There was a problem hiding this comment.
Why not just queue.matches?(config)?
There was a problem hiding this comment.
For some reason all the instance methods are private, not sure why
lib/travis/model/job/queue.rb
Outdated
There was a problem hiding this comment.
I think this is fine as it is, but here's a Ruby tip of the day: Enumerable#detect takes an argument that's used if nothing matches, so this could be written as:
queues.detect(default) { |queue| queue.matches?(config) }There was a problem hiding this comment.
nice one, will use that
|
Can we merge this? :) |
|
Added a feature flag for this (per owner) and tested on staging. |
|
Can you explain how |
|
@joshk during beta we whitelist repo owners using a feature flag. people can then opt in to using docker by setting All of The reason to pick |
I have also refactored Job::Queue a little bit to remove all the repetition in
matches_something?that we've had.