Sha256: fa60fe8b72eb006e5d40ac0f6a66d86f62a8b4b9bd397ebeae71385166bbfab1

Contents?: true

Size: 1.11 KB

Versions: 62

Compression:

Stored size: 1.11 KB

Contents

---
# tasks file for nrser.rbenv_gem

- name: parse rbenv_gem_rubies into rbenv_gem_rubies_list
  vars.rb:
    namespace: rbenv_gem
    vars:
      rubies: "{{ rbenv_gem_rubies }}"
    src: |
      exe = "/usr/bin/env rbenv"
      
      all = `#{ exe } versions --bare`.strip.split + ['system']
      global = `#{ exe } global`.strip
      current = `#{ exe } version-name`.strip
      
      list = rubies.split(',').map {|s| s.strip }.map {|version|
        case version
        when 'global'
          global
        when 'current'
          current
        when 'all'
          all
        else
          version
        end
      }.flatten.uniq
      
      unless (list - all).empty?
        raise "versions #{ (list - all).join(', ') } are not installed"
      end
      
      {'rubies_list' => list}

- debug:
    msg: "{{ rbenv_gem_rubies_list }}"

# this will clone the repo, build the .gem and point rbenv_gem_source to it
- include: clone-repo.yml
  when: rbenv_gem_repo is defined

- include: manage-source.yml
  when: rbenv_gem_source is defined

- include: manage-version.yml
  when: rbenv_gem_source is not defined

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
qb-0.1.32 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.31 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.30 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.29 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.28 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.27 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.26 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.25 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.24 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.23 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.22 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.21 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.20 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.19 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.18 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.17 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.16 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.15 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.14 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.13 roles/nrser.rbenv_gem/tasks/main.yml