|
|
@@ -79,3 +79,22 @@ diaspora_git: |
|
|
|
- user: {{ diaspora.user.username }} |
|
|
|
- require: |
|
|
|
- file: diaspora_install_directory |
|
|
|
|
|
|
|
diaspora_rvm_ruby_version_alias: |
|
|
|
cmd.run: |
|
|
|
- name: rvm alias create $(cat {{ diaspora.install_path }}/.ruby-version) ruby-{{ diaspora.ruby_version }} |
|
|
|
- runas: diaspora |
|
|
|
- unless: rvm alias list | grep "$(cat {{ diaspora.install_path }}/.ruby-version) => ruby-{{ diaspora.ruby_version }}" |
|
|
|
- require: |
|
|
|
- git: diaspora_git |
|
|
|
|
|
|
|
diaspora_bundle_install: |
|
|
|
cmd.run: |
|
|
|
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/bundle install --jobs $(nproc) --deployment --without test development --with {{ diaspora.database.type }} |
|
|
|
- runas: diaspora |
|
|
|
- cwd: {{ diaspora.install_path }} |
|
|
|
- unless: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/bundle check |
|
|
|
- env: |
|
|
|
- RAILS_ENV: {{ diaspora.environment }} |
|
|
|
- require: |
|
|
|
- git: diaspora_git |