This repository was archived by the owner on Jun 11, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 30
30
# Owner of the cloned repo.
31
31
#
32
32
define git::clone (
33
- $ensure = ' present' ,
34
33
$source_url ,
35
34
$destination_dir ,
35
+ $ensure = ' present' ,
36
36
$creates = $destination_dir,
37
37
$extra_options = ' ' ,
38
38
$branch = $git::default_branch,
39
39
$owner = $git::default_owner,) {
40
+
40
41
include git
41
42
42
43
validate_string($owner )
52
53
}
53
54
}
54
55
' absent' : {
55
- file { "${ destination_dir}" :
56
+ file { $ destination_dir:
56
57
ensure => ' absent' ,
57
58
recurse => true ,
58
59
force => true ,
Original file line number Diff line number Diff line change 143
143
# ## Managed resources
144
144
if !defined (Package[$git::package ]) {
145
145
package { $git::package :
146
- ensure => $git::manage_package ,
147
- noop => $git::noops ,
146
+ ensure => $git::manage_package ,
147
+ noop => $git::noops ,
148
148
}
149
149
}
150
150
Original file line number Diff line number Diff line change 16
16
# present in the git_reposync script. Required.
17
17
#
18
18
# [*destination_dir*]
19
- # Local directory where to sync the repository, As passed to the
19
+ # Local directory where to sync the repository. As passed to the
20
20
# git command present in the git_reposync script. Required.
21
21
#
22
22
# [*extra_options*]
35
35
# command (when autorun is enabled). Default: $destination_dir.
36
36
#
37
37
# [*pre_command*]
38
- # Optional comman to execute before executing the git command.
38
+ # Optional command to execute before executing the git command.
39
39
# Note that this command is placed in the git_reposync script created
40
40
# by this define and it's executed every time this script is run (either
41
41
# manually or via Puppet). Default: ''
42
42
#
43
43
# [*post_command*]
44
- # Optional comman to execute after executing the git command.
44
+ # Optional command to execute after executing the git command.
45
45
# Note that this command is placed in the git_reposync script created
46
46
# by this define and it's executed every time this script is run (either
47
47
# manually or via Puppet). Default: ''
132
132
133
133
if $autorun == true {
134
134
exec { "git_reposync_run_${name}" :
135
- command => " ${basedir} /git_reposync_${name} " ,
136
- creates => $creates ,
135
+ command => " ${basedir} /git_reposync_${name} " ,
136
+ creates => $creates ,
137
137
}
138
138
}
139
139
Original file line number Diff line number Diff line change 25
25
26
26
< %= @post_command %>
27
27
28
- < % if @execute_on_change == true %>
28
+ < % if @manage_execute_on_change == true %>
29
29
fi
30
30
< % end %>
You can’t perform that action at this time.
0 commit comments