Sha256: c8638b8ec88f553b5de47305c17f46e6fc13cf08fa90a49b9cabe535a54e1e49

Contents?: true

Size: 1.53 KB

Versions: 27

Compression:

Stored size: 1.53 KB

Contents

# Create a Homebrew formula for a version of Yarn so we can install it.

- name: >-
    Tap {{ yarn_setup_brew_tap }} in Homebrew
  homebrew_tap:
    name: "{{ yarn_setup_brew_tap }}"

- name: >-
    Get location of {{ yarn_setup_brew_tap }}
  command: >-
    brew --repo {{ yarn_setup_brew_tap }}
  changed_when: false
  register: yarn_setup_brew_tap_dir

- name: >-
    The formula name is 'yarn@<version>'
  set_fact:
    yarn_setup_formula_name: "yarn@{{ yarn_setup_version }}"

- name: >-
    The new formula path is '<brew_tap_dir>/Formula/<formula_name>.rb'
  set_fact:
    yarn_setup_formula_path: >-
      {{ yarn_setup_brew_tap_dir.stdout }}/Formula/{{ yarn_setup_formula_name }}.rb

- name: >-
    Template formula to {{ yarn_setup_formula_path }}
  template:
    src: yarn@M.m.p.rb.j2
    dest: "{{ yarn_setup_formula_path }}"
    force: "{{ yarn_setup_force }}"

- name: >-
    Install new {{ yarn_setup_formula_name }} formula
  homebrew:
    name: "{{ yarn_setup_brew_name }}"
    state: present

- name: >-
    Add new formlua to {{ yarn_setup_brew_tap }} repo
  command: >-
    git add Formula/{{ yarn_setup_formula_name }}.rb
  args:
    chdir: "{{ yarn_setup_brew_tap_dir.stdout }}"

- name: >-
    Commit new formula to {{ yarn_setup_brew_tap }}
  command: >-
    git commit -m "qb/yarn/setup role added {{ yarn_setup_formula_name }} formula"
  args:
    chdir: "{{ yarn_setup_brew_tap_dir.stdout }}"

- name: >-
    Push {{ yarn_setup_brew_tap }}
  command: >-
    git push origin master
  args:
    chdir: "{{ yarn_setup_brew_tap_dir.stdout }}"
  

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
qb-0.4.5 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.4.4 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.4.3 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.4.2 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.4.1 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.4.0 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.25 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.24 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.23 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.22 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.21 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.20 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.19 roles/qb/nodejs/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.18 roles/qb/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.17 roles/qb/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.16 roles/qb/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.15 roles/qb/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.14 roles/qb/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.13 roles/qb/yarn/setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.12 roles/qb/yarn/setup/tasks/distribution/MacOSX/brew_create.yml