forked from noelmcloughlin/jetbrains-goland-formula
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from saltstack-formulas/rebranded
Gogland got renamed to Goland
- Loading branch information
Showing
16 changed files
with
267 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: gogland | ||
name: goland | ||
os: gnu-linux, MacOS, Windows | ||
os_family: RedHat, Debian, Suse, FreeBSD, Archlinux, MacOS | ||
version: 201710 | ||
release: 1 | ||
minimum_version: 2016.3 | ||
summary: Formula for installing Jetbrains Gogland | ||
description: Formula for installing Jetbrains Gogland IDE for GO developers | ||
summary: Formula for installing Jetbrains Goland | ||
description: Formula for installing Jetbrains Goland IDE for GO developers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{% from "goland/map.jinja" import goland with context %} | ||
{% if goland.prefs.user %} | ||
goland-desktop-shortcut-clean: | ||
file.absent: | ||
- name: '{{ goland.homes }}/{{ goland.prefs.user }}/Desktop/Goland' | ||
- require_in: | ||
- file: goland-desktop-shortcut-add | ||
- onlyif: test "`uname`" = "Darwin" | ||
goland-desktop-shortcut-add: | ||
file.managed: | ||
- name: /tmp/mac_shortcut.sh | ||
- source: salt://goland/files/mac_shortcut.sh | ||
- mode: 755 | ||
- template: jinja | ||
- context: | ||
user: {{ goland.prefs.user }} | ||
homes: {{ goland.homes }} | ||
edition: {{ goland.jetbrains.edition }} | ||
- onlyif: test "`uname`" = "Darwin" | ||
cmd.run: | ||
- name: /tmp/mac_shortcut.sh {{ goland.jetbrains.edition }} | ||
- runas: {{ goland.prefs.user }} | ||
- require: | ||
- file: goland-desktop-shortcut-add | ||
- require_in: | ||
- file: goland-desktop-shortcut-install | ||
- onlyif: test "`uname`" = "Darwin" | ||
goland-desktop-shortcut-install: | ||
file.managed: | ||
- source: salt://goland/files/goland.desktop | ||
- name: {{ goland.homes }}/{{ goland.prefs.user }}/Desktop/goland{{ goland.jetbrains.edition }}.desktop | ||
- makedirs: True | ||
- user: {{ goland.prefs.user }} | ||
{% if goland.prefs.group and grains.os not in ('MacOS',) %} | ||
- group: {{ goland.prefs.group }} | ||
{% endif %} | ||
- mode: 644 | ||
- force: True | ||
- template: jinja | ||
- onlyif: test -f {{ goland.jetbrains.realcmd }} | ||
- context: | ||
home: {{ goland.jetbrains.realhome }} | ||
command: {{ goland.command }} | ||
{% if goland.prefs.jarurl or goland.prefs.jardir %} | ||
goland-prefs-importfile: | ||
file.managed: | ||
- onlyif: test -f {{ goland.prefs.jardir }}/{{ goland.prefs.jarfile }} | ||
- name: {{ goland.homes }}/{{ goland.prefs.user }}/{{ goland.prefs.jarfile }} | ||
- source: {{ goland.prefs.jardir }}/{{ goland.prefs.jarfile }} | ||
- makedirs: True | ||
- user: {{ goland.prefs.user }} | ||
{% if goland.prefs.group and grains.os not in ('MacOS',) %} | ||
- group: {{ goland.prefs.group }} | ||
{% endif %} | ||
- if_missing: {{ goland.homes }}/{{ goland.prefs.user }}/{{ goland.prefs.jarfile }} | ||
cmd.run: | ||
- unless: test -f {{ goland.prefs.jardir }}/{{ goland.prefs.jarfile }} | ||
- name: curl -o {{goland.homes}}/{{goland.prefs.user}}/{{goland.prefs.jarfile}} {{goland.prefs.jarurl}} | ||
- runas: {{ goland.prefs.user }} | ||
- if_missing: {{ goland.homes }}/{{ goland.prefs.user }}/{{ goland.prefs.jarfile }} | ||
{% endif %} | ||
{% endif %} | ||
File renamed without changes.
File renamed without changes.
Oops, something went wrong.