Module: Gitlab::Danger::SidekiqQueues

Defined in:
lib/gitlab/danger/sidekiq_queues.rb

Instance Method Summary collapse

Instance Method Details

#added_queue_namesObject


10
11
12
# File 'lib/gitlab/danger/sidekiq_queues.rb', line 10

def added_queue_names
  @added_queue_names ||= new_queues.keys - old_queues.keys
end

#changed_queue_filesObject


6
7
8
# File 'lib/gitlab/danger/sidekiq_queues.rb', line 6

def changed_queue_files
  @changed_queue_files ||= git.modified_files.grep(%r{\A(ee/)?app/workers/all_queues\.yml})
end

#changed_queue_namesObject


14
15
16
17
18
# File 'lib/gitlab/danger/sidekiq_queues.rb', line 14

def changed_queue_names
  @changed_queue_names ||=
    (new_queues.values_at(*old_queues.keys) - old_queues.values)
      .compact.map { |queue| queue[:name] }
end