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.52 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.51 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.50 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.49 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.48 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.47 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.46 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.45 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.44 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.43 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.42 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.41 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.40 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.39 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.38 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.37 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.36 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.35 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.34 roles/nrser.rbenv_gem/tasks/main.yml
qb-0.1.33 roles/nrser.rbenv_gem/tasks/main.yml