husky v1.0.3 Husky.Util View Source
Utility to store global constants
Link to this section Summary
Functions
App name.
Path to husky's root elixir config.
Path from the client of husky to the escript.
Full path to the git-hooks install location.
List of git-hooks to install and delete.
Relative location from husky's install location to the client of husky.
App version.
Link to this section Functions
app() View Source (macro)
App name.
config_path() View Source (macro)
Path to husky's root elixir config.
escript_path() View Source
Path from the client of husky to the escript.
Defaults to "deps/husky/priv/husky"
git_hooks_directory() View Source
Full path to the git-hooks install location.
hooks() View Source (macro)
List of git-hooks to install and delete.
[
"applypatch-msg",
"pre-applypatch",
"post-applypatch",
"pre-commit",
"prepare-commit-msg",
"commit-msg",
"post-commit",
"pre-rebase",
"post-checkout",
"post-merge",
"pre-push",
"pre-receive",
"update",
"post-receive",
"post-update",
"push-to-checkout",
"pre-auto-gc",
"post-rewrite",
"sendemail-validate"
]
host_path() View Source
Relative location from husky's install location to the client of husky.
The relative path is expanded using Path.expand/1
.
Used to determine the correct location to install and delete script files.
The value of the relative location can be overridden by setting the :host_path
application config. The default value is ../../
.
See config/test.exs
for an override example
version() View Source (macro)
App version.