Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Commit c038ad1

Browse files
committed
Merge pull request #11 from tobias-m/typos
fixed typos, linting warnings, errors and a wrong variable name inside g...
2 parents ded102d + 5e83fe2 commit c038ad1

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

manifests/clone.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@
3030
# Owner of the cloned repo.
3131
#
3232
define git::clone (
33-
$ensure = 'present',
3433
$source_url,
3534
$destination_dir,
35+
$ensure = 'present',
3636
$creates = $destination_dir,
3737
$extra_options = '',
3838
$branch = $git::default_branch,
3939
$owner = $git::default_owner,) {
40+
4041
include git
4142

4243
validate_string($owner)
@@ -52,7 +53,7 @@
5253
}
5354
}
5455
'absent' : {
55-
file { "${destination_dir}":
56+
file { $destination_dir:
5657
ensure => 'absent',
5758
recurse => true,
5859
force => true,

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
### Managed resources
144144
if !defined(Package[$git::package]) {
145145
package { $git::package:
146-
ensure => $git::manage_package,
147-
noop => $git::noops,
146+
ensure => $git::manage_package,
147+
noop => $git::noops,
148148
}
149149
}
150150

manifests/reposync.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# present in the git_reposync script. Required.
1717
#
1818
# [*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
2020
# git command present in the git_reposync script. Required.
2121
#
2222
# [*extra_options*]
@@ -35,13 +35,13 @@
3535
# command (when autorun is enabled). Default: $destination_dir.
3636
#
3737
# [*pre_command*]
38-
# Optional comman to execute before executing the git command.
38+
# Optional command to execute before executing the git command.
3939
# Note that this command is placed in the git_reposync script created
4040
# by this define and it's executed every time this script is run (either
4141
# manually or via Puppet). Default: ''
4242
#
4343
# [*post_command*]
44-
# Optional comman to execute after executing the git command.
44+
# Optional command to execute after executing the git command.
4545
# Note that this command is placed in the git_reposync script created
4646
# by this define and it's executed every time this script is run (either
4747
# manually or via Puppet). Default: ''
@@ -132,8 +132,8 @@
132132

133133
if $autorun == true {
134134
exec { "git_reposync_run_${name}":
135-
command => "${basedir}/git_reposync_${name}",
136-
creates => $creates,
135+
command => "${basedir}/git_reposync_${name}",
136+
creates => $creates,
137137
}
138138
}
139139

templates/reposync/git_reposync-command.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ fi
2525

2626
<%= @post_command %>
2727

28-
<% if @execute_on_change == true %>
28+
<% if @manage_execute_on_change == true %>
2929
fi
3030
<% end %>

0 commit comments

Comments
 (0)