Sha256: 43cb0a6c0fa5797a52176b22e32eb41d65b2b38c3a90ccc2866bd4a8d959a76f

Contents?: true

Size: 1.98 KB

Versions: 90

Compression:

Stored size: 1.98 KB

Contents

---
# tasks file for qb.gem

# preamble... should move to facts?

- name: get ruby version
  command: ruby -e "puts RUBY_VERSION"
  register: gem_ruby_version
  changed_when: false

- name: get bundler version
  command: bundle --version
  register: gem_bundler_version
  changed_when: false

# ok, actual work....

- name: add /bin/console
  template:
    src: console.j2
    dest: "{{ dir }}/bin/console"
    force: false
    mode: a+x

- name: add /bin/setup
  copy:
    src: setup
    dest: "{{ dir }}/bin/setup"
    force: false
    mode: a+x

- name: create /lib
  file:
    path: "{{ dir }}/lib"
    state: directory

- name: add /lib/<dirname>.rb
  template:
    src: module.rb.j2
    dest: "{{ dir }}/lib/{{ gem_dirname }}.rb"
    force: false

- name: create /lib/<dirname>
  file:
    path: "{{ dir }}/lib/{{ gem_dirname }}"
    state: directory

- name: add /lib/<dirname>/version.rb
  template:
    src: version.rb.j2
    dest: "{{ dir }}/lib/{{ gem_dirname }}/version.rb"
    force: false

- name: create /spec
  file:
    path: "{{ dir }}/spec"
    state: directory

- name: add /spec/spec_helper.rb
  template:
    src: spec_helper.rb.j2
    dest: "{{ dir }}/spec/spec_helper.rb"
    force: false

- name: add /spec/<dirname>_spec.rb
  template:
    src: spec.rb.j2
    dest: "{{ dir }}/spec/{{ gem_dirname }}_spec.rb"
    force: false

- name: add /.rspec
  copy:
    src: .rspec
    dest: "{{ dir }}/.rspec"
    force: false

- name: add /.travis.yml
  template:
    src: .travis.yml.j2
    dest: "{{ dir }}/.travis.yml"
    force: false

- name: add {{ gem_name }}.gemspec
  template:
    src: gemspec.j2
    dest: "{{ dir }}/{{ gem_name }}.gemspec"
    force: false

- name: add /Gemfile
  template:
    src: Gemfile.j2
    dest: "{{ dir }}/Gemfile"
    force: false

- name: add /LICENSE.txt
  template:
    src: "{{ gem_license }}-LICENSE.txt.j2"
    dest: "{{ dir }}/LICENSE.txt"
    force: false
  when: gem_license is defined

- name: add /Rakefile
  copy:
    src: Rakefile
    dest: "{{ dir }}/Rakefile"

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
qb-0.1.49 roles/qb.gem/tasks/main.yml
qb-0.1.48 roles/qb.gem/tasks/main.yml
qb-0.1.47 roles/qb.gem/tasks/main.yml
qb-0.1.46 roles/qb.gem/tasks/main.yml
qb-0.1.45 roles/qb.gem/tasks/main.yml
qb-0.1.44 roles/qb.gem/tasks/main.yml
qb-0.1.43 roles/qb.gem/tasks/main.yml
qb-0.1.42 roles/qb.gem/tasks/main.yml
qb-0.1.41 roles/qb.gem/tasks/main.yml
qb-0.1.40 roles/qb.gem/tasks/main.yml
qb-0.1.39 roles/qb.gem/tasks/main.yml
qb-0.1.38 roles/qb.gem/tasks/main.yml
qb-0.1.37 roles/qb.gem/tasks/main.yml
qb-0.1.36 roles/qb.gem/tasks/main.yml
qb-0.1.35 roles/qb.gem/tasks/main.yml
qb-0.1.34 roles/qb.gem/tasks/main.yml
qb-0.1.33 roles/qb.gem/tasks/main.yml
qb-0.1.32 roles/qb.gem/tasks/main.yml
qb-0.1.31 roles/qb.gem/tasks/main.yml
qb-0.1.30 roles/qb.gem/tasks/main.yml