Sha256: a47f43489f4dc58432fcdbb666b0ae071c05bed858f060748e58193013cd78bb

Contents?: true

Size: 1.13 KB

Versions: 18

Compression:

Stored size: 1.13 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_tasks: clone-repo.yml
  when: rbenv_gem_repo is defined

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
qb-0.4.5 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.4.4 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.4.3 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.4.2 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.4.1 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.4.0 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.25 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.24 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.23 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.22 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.21 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.20 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.19 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.18 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.17 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.16 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.15 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.3.14 roles/nrser.rbenv_gem/tasks/main.yml