Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Commit

Permalink
Added missing curly braces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Pelletier committed Sep 25, 2012
1 parent 783d151 commit 9639399
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions manifests/ant.pp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
class ant::ant($version = $ant::params::version) inherits ant::params {
wget::fetch { "ant":
source => "http://archive.apache.org/dist/ant/binaries/apache-ant-$version-bin.tar.gz",
destination => "${ant::params::srcdir}/apache-ant-$version-bin.tar.gz"
source => "http://archive.apache.org/dist/ant/binaries/apache-ant-${version}-bin.tar.gz",
destination => "${ant::params::srcdir}/apache-ant-${version}-bin.tar.gz"
} ->
exec { "tar zxvf ${ant::params::srcdir}/apache-ant-$version-bin.tar.gz":
exec { "tar zxvf ${ant::params::srcdir}/apache-ant-${version}-bin.tar.gz":
cwd => "/usr/share/",
creates => "/usr/share/apache-ant-$version",
creates => "/usr/share/apache-ant-${version}",
path => "/bin/:/usr/bin"
} ->
file { "/usr/bin/ant":
ensure => "/usr/share/apache-ant-$version/bin/ant",
ensure => "/usr/share/apache-ant-${version}/bin/ant",
}

}
12 changes: 6 additions & 6 deletions manifests/ivy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
include ant::params

wget::fetch { "ivy":
source => "http://mirrors.gigenet.com/apache//ant/ivy/$version/apache-ivy-$version-bin.tar.gz",
destination => "${ant::params::srcdir}/apache-ivy-$version-bin.tar.gz",
source => "http://mirrors.gigenet.com/apache//ant/ivy/${version}/apache-ivy-${version}-bin.tar.gz",
destination => "${ant::params::srcdir}/apache-ivy-${version}-bin.tar.gz",
require => File[ "/usr/bin/ant" ]
} ->
exec { "tar zxvf ${ant::params::srcdir}/apache-ivy-$version-bin.tar.gz":
exec { "tar zxvf ${ant::params::srcdir}/apache-ivy-${version}-bin.tar.gz":
cwd => "/usr/share",
path => "/bin/:/usr/bin",
creates => "/usr/share/apache-ivy-$version"
creates => "/usr/share/apache-ivy-${version}"
} ->
file { "/usr/share/apache-ant-${ant::params::version}/lib/ivy-$version.jar":
ensure => "/usr/share/apache-ivy-$version/ivy-$version.jar",
file { "/usr/share/apache-ant-${ant::params::version}/lib/ivy-${version}.jar":
ensure => "/usr/share/apache-ivy-${version}/ivy-${version}.jar",
}
}

0 comments on commit 9639399

Please sign in to comment.