Move SidekiqConfig methods used by CLI to own module
These methods can't use any Rails dependencies, which also means the SidekiqConfig module definition - i.e. constants - can't use Rails dependencies either. Move those methods to their own module to make this clearer. Also switch to defining methods on the singleton class in both modules to make private methods more convenient.
显示
- ee/bin/sidekiq-cluster 1 个添加, 1 个删除ee/bin/sidekiq-cluster
- ee/lib/gitlab/sidekiq_cluster/cli.rb 2 个添加, 2 个删除ee/lib/gitlab/sidekiq_cluster/cli.rb
- ee/spec/lib/gitlab/sidekiq_cluster/cli_spec.rb 3 个添加, 3 个删除ee/spec/lib/gitlab/sidekiq_cluster/cli_spec.rb
- lib/gitlab/sidekiq_config.rb 30 个添加, 55 个删除lib/gitlab/sidekiq_config.rb
- lib/gitlab/sidekiq_config/cli_methods.rb 43 个添加, 0 个删除lib/gitlab/sidekiq_config/cli_methods.rb
加载中
想要评论请 注册 或 登录