summaryrefslogtreecommitdiff
path: root/manifests/pip.pp
diff options
context:
space:
mode:
authorNeil Saunders <neil@zeebox.com>2013-12-19 18:06:25 +0000
committerNeil Saunders <neil@zeebox.com>2013-12-19 18:06:25 +0000
commit535115b9d1426a4d380dc4631fdd2944e0c29e88 (patch)
treee7a42f69966ba12c7bf0f4e0ff633f8399718bfd /manifests/pip.pp
parentc2a96f8dd40d75c6cf15518010e0a00889df6690 (diff)
Fixing lint issues as per http://docs.puppetlabs.com/guides/style_guide.html
Diffstat (limited to 'manifests/pip.pp')
-rw-r--r--manifests/pip.pp20
1 files changed, 10 insertions, 10 deletions
diff --git a/manifests/pip.pp b/manifests/pip.pp
index bcb7911..ebe549b 100644
--- a/manifests/pip.pp
+++ b/manifests/pip.pp
@@ -57,7 +57,7 @@ define python::pip (
$cwd = $virtualenv ? {
'system' => '/',
- default => "${virtualenv}",
+ default => $virtualenv,
}
$pip_env = $virtualenv ? {
@@ -88,26 +88,26 @@ define python::pip (
case $ensure {
present: {
exec { "pip_install_${name}":
- command => "$pip_env --log ${cwd}/pip.log install $install_args ${proxy_flag} ${source}",
- unless => "$pip_env freeze | grep -i -e ${grep_regex}",
+ command => "${pip_env} --log ${cwd}/pip.log install ${install_args} ${proxy_flag} ${source}",
+ unless => "${pip_env} freeze | grep -i -e ${grep_regex}",
user => $owner,
environment => $environment,
- path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"],
+ path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
}
}
latest: {
exec { "pip_install_${name}":
- command => "$pip_env --log ${cwd}/pip.log install --upgrade ${proxy_flag} ${source}",
+ command => "${pip_env} --log ${cwd}/pip.log install --upgrade ${proxy_flag} ${source}",
user => $owner,
environment => $environment,
- path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"],
+ path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
}
}
latest: {
exec { "pip_install_${name}":
- command => "$pip_env --log ${cwd}/pip.log install -U $install_args ${proxy_flag} ${source}",
+ command => "${pip_env} --log ${cwd}/pip.log install -U ${install_args} ${proxy_flag} ${source}",
user => $owner,
environment => $environment,
}
@@ -115,11 +115,11 @@ define python::pip (
default: {
exec { "pip_uninstall_${name}":
- command => "echo y | $pip_env uninstall $uninstall_args ${proxy_flag} ${name}",
- onlyif => "$pip_env freeze | grep -i -e ${grep_regex}",
+ command => "echo y | ${pip_env} uninstall ${uninstall_args} ${proxy_flag} ${name}",
+ onlyif => "${pip_env} freeze | grep -i -e ${grep_regex}",
user => $owner,
environment => $environment,
- path => ["/usr/local/bin","/usr/bin","/bin", "/usr/sbin"],
+ path => ['/usr/local/bin','/usr/bin','/bin', '/usr/sbin'],
}
}
}