Permalink
Browse files

Adding support for archlinux on the leiningen module

  • Loading branch information...
1 parent d0c47da commit d2f0453a8628091a96abd527ff509f52e7af67b4 @roman roman committed Sep 22, 2011
Showing with 7 additions and 5 deletions.
  1. +2 −0 leiningen/manifests/init.pp
  2. +5 −5 leiningen/manifests/install.pp
View
2 leiningen/manifests/init.pp
@@ -1,4 +1,6 @@
class leiningen($user="vagrant") {
+ include java
+
class { "leiningen::install":
user => $user
}
View
10 leiningen/manifests/install.pp
@@ -1,11 +1,11 @@
class leiningen::install($user) {
$exec = "https://github.com/technomancy/leiningen/raw/stable/bin/lein"
- package { ["wget", "rlwrap"]:
+ package { ["wget"]:
ensure => present,
}
- file { "create local bin":
+ file { "create-local-bin":
ensure => directory,
path => "/home/$user/.bin",
owner => $user,
@@ -19,11 +19,11 @@
path => ["/bin", "/usr/bin", "/usr/local/bin"],
cwd => "/home/$user/.bin",
command => "wget $exec && chmod 755 lein && ./lein",
- creates => ["/home/$user/.bin/lein",
+ creates => ["/home/$user/.bin/lein",
"/home/$user/.lein"],
require => [Class["java::install"],
- File["create local bin"],
- Package["wget", "rlwrap"]],
+ File["create-local-bin"],
+ Package["wget"]],
}
}

0 comments on commit d2f0453

Please sign in to comment.