Skip to content

Commit

Permalink
merged update
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed May 15, 2015
1 parent d37ee42 commit e8bbb09
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
16 changes: 16 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,19 @@
curl -sS https://getcomposer.org/installer | php -- --install-dir={{ composer_path }} --filename=composer
args:
creates: "{{ composer_path }}/composer"

- name: Get stat of composer file
stat:
path: "{{ composer_path }}"
register: composer_stat

- name: Get date for composer update
shell: >
date --date='{{ composer_update_day }} days ago' +'%s'
register: composer_last_update
changed_when: False

- name: Update composer if necessary
shell: >
{{ composer_path }} selfupdate
when: composer_last_update.stdout|int > composer_stat.stat.mtime|int
18 changes: 0 additions & 18 deletions tasks/update.yml

This file was deleted.

0 comments on commit e8bbb09

Please sign in to comment.