Sha256: 9ae7ebd2be2018ea54fd71327823eb7dd137e2f789312028adc9d1e82c6ba918

Contents?: true

Size: 467 Bytes

Versions: 18

Compression:

Stored size: 467 Bytes

Contents

---

- name: >-
    Set `dest` for `class={{ class }}` relative to 
    `spec_abs_dir={{ spec_abs_dir }}`
  set_fact:
    dest: >-
      {{ spec_abs_dir | path_join( (class | to_filepath) + '_spec.rb' ) }}

- name: >-
    Make sure the destination directory `{{ dest | dirname }}` exists
  file:
    dest: >-
      {{ dest | dirname }}
    state: directory

- name: >-
    Render spec file template
  template:
    src: class_spec.rb.j2
    dest: >-
      {{ dest }}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
qb-0.4.3 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.4.2 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.4.1 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.4.0 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.3.25 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.3.24 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.3.23 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.3.22 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.3.21 roles/qb/ruby/nrser/rspex/generate/tasks/class.yml
qb-0.3.20 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.19 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.18 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.17 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.16 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.15 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.14 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.13 roles/qb/rspex/generate/tasks/class.yml
qb-0.3.12 roles/qb/rspex/generate/tasks/class.yml