Sha256: cd11171ba6f0ae8e888c73750364050a7ee1f985edd6ec0497f9a465a60a38d6
Contents?: true
Size: 1.6 KB
Versions: 16
Compression:
Stored size: 1.6 KB
Contents
--- ############################################################################## # Main tasks for `qb/ruby/gem/build` role ############################################################################## - when: get_root_facts is not defined name: >- Get the QB path facts for `gem_root={{ gem_root }}` path_facts: path: >- {{ gem_root }} register: gem_root_facts - name: >- Set `gem_build_filename` to the (presumed) filename of the new `.gem` set_fact: gem_build_filename: >- {{ gem_root_facts.gem.name }}-{{ gem_root_facts.gem.version.raw }}.gem - name: > Set `gem_build_path` to the absolute path we want `{{ gem_build_filename }}` to end up at set_fact: gem_build_path: >- {{ gem_build_dest | path_resolve( gem_build_filename ) }} - when: not gem_root_facts.gem.version.is_dev block: - name: >- Stat destination path `{{ gem_build_path }}` stat: path: >- {{ gem_build_path }} register: gem_build_path_stat - when: gem_build_path_stat.stat.exists fail: msg: >- Gem build destination `{{ gem_build_path }}` exists (and gem at `{{ gem_root }}` is not at a `dev` version) - name: >- Build gem from {{ gem_root_facts.gem.gemspec_path }} stream: cmd: gem build {{ gem_root_facts.gem.gemspec_path | basename | quote }} chdir: >- {{ gem_root }} - when: gem_root != gem_build_dest name: >- Move new `{{ gem_build_filename }}` file to `{{ gem_build_path }}` command: >- mv {{ gem_build_filename | quote }} {{ gem_build_path | quote }} args: chdir: >- {{ gem_root }}
Version data entries
16 entries across 16 versions & 1 rubygems