Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.09 KB

advanced_usage.md

File metadata and controls

24 lines (19 loc) · 1.09 KB

Advanced Usage

Pack Maintenance

Setting Privacy

Packs.create_pack!(
    # This determines whether your package.yml in your new package will enforce privacy. See packwerk documentation for more details on this attribute.
    # This is an optional parameter (default is true). See https://github.com/Gusto/packs/discussions/19
    enforce_privacy: false,
    # ... other parameters
)

Per-file Processors

Your application may have specific needs when moving files. Packs gives a way to inject application-specific behavior into the file move process.

You can pass in an array of application specific behavior into the per_file_processors parameter of the main method.

See rubocop_post_processor.rb as an example of renaming files in .rubocop_todo.yml automatically, which is something you may want to do (as you do not want to fix all style errors when you're just moving a file).

First-Time Configuration (per repo, not per developer)

If you install binstubs, it allows simpler commands: bin/packs rather than bundle exec packs.

Install binstubs using: bundle binstubs packs