Skip to content
代码片段 群组 项目
提交 321ce0c6 编辑于 作者: Dylan Griffith's avatar Dylan Griffith
浏览文件

Document how to use housekeeper in other projects and fix active_support

This is documentation for how housekeeper could be used in other
projects. In testing this I found there was a problem with requiring
active_support in other projects so I fixed that as well.
上级 3fbad4db
No related branches found
No related tags found
无相关合并请求
......@@ -169,3 +169,19 @@ Some best practices to consider when using a once-off keep:
1. Consider adding a link back to this MR in the description of your generated
MRs. This allows reviewers to understand where this work comes from and can
also help if they want to contribute improvements to an ongoing group of MRs.
## Using Housekeeper in other projects
Right now we do not publish housekeeper to RubyGems. We have published it once
to hold the name but it's not up to date.
In order to use Housekeeper in another project you would need to add the
following to your `Gemfile` and run `bundle install`:
```
gem 'gitlab-housekeeper', git: 'https://gitlab.com/gitlab-org/gitlab.git', branch: 'master', glob: 'gems/gitlab-housekeeper/*.gemspec'
```
After that you can just run `bundle exec gitlab-housekeeper`. Housekeeper
defaults to loading all keeps in the `./keeps` directory so you would also
create that directory in your project and put your keeps there.
# frozen_string_literal: true
require 'active_support'
require 'active_support/core_ext'
require 'active_support/core_ext/string'
require 'gitlab/housekeeper/logger'
require 'gitlab/housekeeper/keep'
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册