Skip to content

Instantly share code, notes, and snippets.

@jacoyutorius
Created August 28, 2013 11:00
Show Gist options
  • Save jacoyutorius/6364842 to your computer and use it in GitHub Desktop.
Save jacoyutorius/6364842 to your computer and use it in GitHub Desktop.
オレオレChef
# apt_package "apt-get upgrade" do
# action :upgrade
# end
package "apache2" do
action :install
ignore_failure true
end
package "git" do
action :install
ignore_failure true
end
apt_package "gcc" do
action :install
ignore_failure true
end
apt_package "make" do
action :install
ignore_failure true
end
apt_package "gcc-c++" do
action :install
ignore_failure true
end
apt_package "zlib-devel" do
action :install
ignore_failure true
end
apt_package "httpd-devel" do
action :install
ignore_failure true
end
apt_package "openssl-devel" do
action :install
ignore_failure true
end
apt_package "curl-devel" do
action :install
ignore_failure true
end
apt_package "sqlite-devel" do
action :install
ignore_failure true
end
bash "install_ruby-build" do
user "root"
cwd "/tmp"
code <<-EOH
git clone git://github.com/sstephenson/ruby-build.git
cd ruby-build
./install.sh
EOH
ignore_failure true
end
bash "install_rbenv" do
user "root"
cwd "/tmp"
code <<-EOH
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bashrc
exec $SHELL -l
rbenv install -l
EOH
ignore_failure true
end
bash "install_ruby2.0.0-p247" do
user "root"
code <<-EOH
rbenv install 2.0.0-p247;rbenv rehash
rbenv global 2.0.0-p247;rbenv rehash
EOH
ignore_failure true
end
gem_package "bundler" do
action :install
options "--no-rdoc --no-ri"
ignore_failure true
end
gem_package "rails" do
action :install
options "--no-rdoc --no-ri"
ignore_failure true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment