This repository has been archived by the owner on May 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove DSL magic from recipes to be compatible with Chef 12.4.0 (chef…
- Loading branch information
skim
committed
Jul 1, 2015
1 parent
28cfb42
commit deec7b3
Showing
19 changed files
with
154 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
apt_package 'ack-grep' | ||
|
||
user_cookbook_file '.ackrc' | ||
cookbook_file Helper.home('.ackrc') do | ||
owner Helper.user | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,39 @@ | ||
lein_dir = Helper.home('.lein') | ||
lein_bin_dir = File.join(lein_dir, 'bin') | ||
lein_dir = Helper.home('.lein') | ||
lein_bin_dir = File.join(lein_dir, 'bin') | ||
lein_self_install_dir = File.join(lein_dir, 'self-installs') | ||
lein_bin = File.join(lein_dir, 'bin', 'lein') | ||
lein_bin = File.join(lein_dir, 'bin', 'lein') | ||
|
||
user_directory lein_bin_dir do | ||
directory lein_bin_dir do | ||
owner Helper.user | ||
recursive true | ||
end | ||
|
||
user_file lein_bin do | ||
file lein_bin do | ||
owner Helper.user | ||
action :delete | ||
end | ||
|
||
user_directory lein_self_install_dir do | ||
directory lein_self_install_dir do | ||
owner Helper.user | ||
action :delete | ||
recursive true | ||
end | ||
|
||
user_directory lein_self_install_dir | ||
directory lein_self_install_dir do | ||
owner Helper.user | ||
end | ||
|
||
user_remote_file lein_bin do | ||
remote_file lein_bin do | ||
owner Helper.user | ||
mode 0755 | ||
source 'https://raw.github.com/technomancy/leiningen/stable/bin/lein' | ||
end | ||
|
||
user_bash 'install leiningen' do | ||
bash 'install leiningen' do | ||
user Helper.user | ||
code "#{lein_bin} self-install" | ||
end | ||
|
||
zsh_file 'leiningen' | ||
cookbook_file Helper.home('.zsh/leiningen.zsh') do | ||
owner Helper.user | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
user_cookbook_file '.gitconfig' | ||
cookbook_file Helper.home('.gitconfig') do | ||
owner Helper.user | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,38 @@ | ||
apt_package 'libfontconfig1-dev' | ||
|
||
phantom_package = 'phantomjs-1.9.7-linux-x86_64' | ||
phantom_url = "https://bitbucket.org/ariya/phantomjs/downloads/#{phantom_package}.tar.bz2" | ||
phantom_tar = Helper.home('phantomjs.tar.bz2') | ||
phantom_home = Helper.home('.phantomjs') | ||
phantom_package = 'phantomjs-1.9.7-linux-x86_64' | ||
phantom_url = "https://bitbucket.org/ariya/phantomjs/downloads/#{phantom_package}.tar.bz2" | ||
phantom_tar = Helper.home('phantomjs.tar.bz2') | ||
phantom_home = Helper.home('.phantomjs') | ||
phantom_unpacked_path = Helper.home(phantom_package) | ||
|
||
user_remote_file phantom_tar do | ||
remote_file phantom_tar do | ||
owner Helper.user | ||
source phantom_url | ||
mode '0644' | ||
end | ||
|
||
user_directory phantom_home do | ||
directory phantom_home do | ||
owner Helper.user | ||
action :delete | ||
recursive true | ||
end | ||
|
||
user_bash 'unpack phantomjs' do | ||
bash 'unpack phantomjs' do | ||
user Helper.user | ||
code "tar -xvjf #{phantom_tar} -C #{Helper.home}" | ||
end | ||
|
||
user_bash 'move phantomjs' do | ||
bash 'move phantomjs' do | ||
user Helper.user | ||
code "mv #{phantom_unpacked_path} #{phantom_home}" | ||
end | ||
|
||
user_file phantom_tar do | ||
file phantom_tar do | ||
owner Helper.user | ||
action :delete | ||
end | ||
|
||
zsh_file 'phantomjs' | ||
cookbook_file Helper.home('.zsh/phantomjs.zsh') do | ||
owner Helper.user | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.