feat(pp): add delta diff tool
This commit is contained in:
parent
e9bfc19b22
commit
0701476af3
2 changed files with 20 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ node default {
|
||||||
include core::emacs
|
include core::emacs
|
||||||
include core::terminal
|
include core::terminal
|
||||||
include core::mkcert
|
include core::mkcert
|
||||||
|
include core::delta
|
||||||
include core::language_tool
|
include core::language_tool
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
||||||
19
site-modules/core/manifests/delta.pp
Normal file
19
site-modules/core/manifests/delta.pp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Module to install dandavison/delta diff tool
|
||||||
|
#
|
||||||
|
# See: https://github.com/dandavison/delta
|
||||||
|
class core::delta {
|
||||||
|
archive { 'delta':
|
||||||
|
path => '/tmp/delta.tar.gz',
|
||||||
|
source => 'https://github.com/dandavison/delta/releases/download/0.13.0/delta-0.13.0-x86_64-unknown-linux-gnu.tar.gz',
|
||||||
|
extract => true,
|
||||||
|
extract_path => "/tmp",
|
||||||
|
checksum_type => 'sha256',
|
||||||
|
checksum => '69ddecc92e86b77016692589c094bf3a32e7cb8a0dfd9f97f253c173cce830e9',
|
||||||
|
}
|
||||||
|
|
||||||
|
file { 'delta':
|
||||||
|
path => "${user_home}/.local/bin/delta",
|
||||||
|
mode => '0755',
|
||||||
|
source => "/tmp/delta-0.13.0-x86_64-unknown-linux-gnu/delta"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue