Skip to content

Commit

Permalink
Install ruby package, don't install docs for gems.
Browse files Browse the repository at this point in the history
Fixes #8
  • Loading branch information
dzydzany authored and rxaviers committed Nov 11, 2014
1 parent 3a778a6 commit 430bfeb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
tasks:
- include: web/deploy.yml
- include: web/git.yml
- include: web/ruby.yml
15 changes: 15 additions & 0 deletions web/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---

- name: Install Ruby package
apt: name=ruby update_cache=yes

- name: Check if .gemrc exists
stat: path=~/.gemrc
register: gemrc

- name: Create .gemrc file if not exists
file: path=~/.gemrc state=touch
when: not gemrc.stat.exists

- name: Don't install ruby packages documentation
lineinfile: "dest=~/.gemrc line='gem: --no-ri --no-rdoc'"

0 comments on commit 430bfeb

Please sign in to comment.