Sha256: aff3d2638f497d08b0efd8f4fcbded44746fb172044228082af0d0854c55554e

Contents?: true

Size: 1.53 KB

Versions: 32

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 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

32 entries across 32 versions & 1 rubygems

Version Path
qb-0.3.4 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.3 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.2 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.3.1 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.88 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.87 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.86 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.85 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.84 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.83 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.82 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.81 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.80 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.79 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.78 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.77 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.76 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.75 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.74 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml
qb-0.1.73 roles/qb.yarn_setup/tasks/distribution/MacOSX/brew_create.yml