-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
62 additions
and
59 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,11 +1,9 @@ | ||
DEPENDENCIES | ||
workspace | ||
path: . | ||
metadata: true | ||
|
||
GRAPH | ||
apt (2.9.2) | ||
timezone-ii (0.2.0) | ||
workspace (0.1.0) | ||
apt (>= 0.0.0) | ||
timezone-ii (>= 0.0.0) | ||
DEPENDENCIES | ||
workspace | ||
path: . | ||
metadata: true | ||
|
||
GRAPH | ||
apt (2.9.2) | ||
workspace (0.1.0) | ||
apt (>= 0.0.0) |
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 |
---|---|---|
|
@@ -7,4 +7,3 @@ | |
version '0.1.0' | ||
|
||
depends 'apt' | ||
depends 'timezone-ii' |
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,9 +1,12 @@ | ||
apt_repository 'ruby2.2'do | ||
uri 'http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu' | ||
distribution node['lsb']['codename'] | ||
components ['main'] | ||
git "rbenv" do | ||
repository "https://github.com/sstephenson/rbenv.git" | ||
destination "/home/vagrant/.rbenv" | ||
action :sync | ||
end | ||
|
||
package 'ruby2.2' do | ||
options '--force-yes' | ||
|
||
git "ruby-build" do | ||
repository https://github.com/sstephenson/ruby-build.git | ||
destination "/home/vagrant/.rbenv/plugins/ruby-build" | ||
action :sync | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,31 @@ | ||
package 'vim-gtk' | ||
package 'git' | ||
|
||
directory "/home/#{work_user}/.vim" do | ||
owner work_user | ||
group work_user | ||
end | ||
|
||
directory "/home/#{work_user}/.vim/bundle" do | ||
owner work_user | ||
group work_user | ||
end | ||
|
||
git "/home/#{work_user}/.vim/bundle/neobundle.vim" do | ||
repository 'https://github.com/Shougo/neobundle.vim' | ||
git "#{Chef::Config[:file_cache_path]}/vim" do | ||
repository 'https://github.com/vim/vim' | ||
revision 'master' | ||
user work_user | ||
group work_user | ||
action :sync | ||
end | ||
|
||
directory "/home/#{work_user}/.vimrc.d" do | ||
owner work_user | ||
group work_user | ||
end | ||
|
||
|
||
cookbook_file "/home/#{work_user}/.vimrc" do | ||
owner work_user | ||
group work_user | ||
execute 'install build depends' do | ||
user 'root' | ||
command 'apt-get build-dep -y --allow-unauthenticated vim' | ||
end | ||
|
||
"/home/#{work_user}/.vimrc.d".tap do |vimdir| | ||
%w{.vimrc.basic .vimrc.bundle .vimrc.complete}.each do |file| | ||
cookbook_file "#{vimdir}/#{file}" do | ||
owner work_user | ||
group work_user | ||
end | ||
end | ||
package %w{ | ||
lua5.3 | ||
python3 | ||
python3-dev | ||
python3-pip | ||
} | ||
configure_opts = %w{ | ||
--with-features=huge | ||
--enable-luainterp | ||
--enable-python3interp | ||
--enable-ruby-interp | ||
--enable-fail-if-missing | ||
}.join(" ") | ||
execute 'build vim' do | ||
user 'root' | ||
command "./configure #{configure_opts} && make && sudo make install" | ||
cwd "#{Chef::Config[:file_cache_path]}/vim" | ||
end |