Skip to content

Commit

Permalink
Add very basic implementation of rubber helper
Browse files Browse the repository at this point in the history
  • Loading branch information
gildegoma committed Jan 2, 2015
1 parent f8842cf commit 90c1b38
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 78 deletions.
54 changes: 2 additions & 52 deletions .gitignore
@@ -1,54 +1,4 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*.bak

# C extensions
*.so
ansible/npm-debug.log

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/
26 changes: 0 additions & 26 deletions ansible/group_vars/all.bak

This file was deleted.

10 changes: 10 additions & 0 deletions rubber
@@ -0,0 +1,10 @@
#!/bin/bash

template=$1
target=$2

gsed -e "s/%name%/$target/g" templates/rubber/$template.tmpl > ansible/macosx/$target.yml
gsed -i.bak "/^software:$/a\ \ $target: yes" ansible/group_vars/all

# TODO improve args handling
# TODO append to master.yml
5 changes: 5 additions & 0 deletions templates/rubber/homebrew.tmpl
@@ -0,0 +1,5 @@
---

- name: install %name%
homebrew: name=%name% state=latest

5 changes: 5 additions & 0 deletions templates/rubber/homebrew_cask.tmpl
@@ -0,0 +1,5 @@
---

- name: install %name%
homebrew_cask: name=%name%

0 comments on commit 90c1b38

Please sign in to comment.