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.72 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.71 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.70 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.69 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.68 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.67 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.66 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.65 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.64 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.63 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.62 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.61 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.60 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.59 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.58 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.57 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.56 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.55 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.54 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.53 roles/nrser.rbenv_gem/tasks/main.yml