Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 2d50327

Browse files
Merge pull request #67 from codenamephp/removeVSCode
Remove vs code
2 parents 450b902 + 2c770c1 commit 2d50327

File tree

4 files changed

+7
-72
lines changed

4 files changed

+7
-72
lines changed

.github/workflows/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
with:
7272
token: ${{ secrets.GITHUB_TOKEN }}
7373
exclude_labels: "duplicate,question,invalid,wontfix,skip-changelog"
74-
74+
release_branch: "main"
7575
- name: commit updated changelog
7676
uses: EndBug/add-and-commit@v7
7777
with:

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
exclude_labels: "duplicate,question,invalid,wontfix,skip-changelog"
21-
21+
release_branch: "main"
2222
- name: commit updated changelog
2323
uses: EndBug/add-and-commit@v7
2424
with:

MIGRATION.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 4.0
2+
3+
VSCode recipe and resources were removed. Use the codenamephp_vscode cookbook instead.
4+
15
# 3.0
26

37
dnsmasq and resolver were removed. If you need them, just recreate the recipes in your wrapper cookoobk.

README.md

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,10 @@ Cookbook that contains recipes for dev tools, like vscode, chrome, openjdk ...
1212

1313
### Chef
1414

15-
- Chef 13.0+
16-
17-
### Cookbook Depdendencies
18-
19-
- [sc_vscode][sc_vscode_url]
15+
- Chef 15.3+
2016

2117
## Tools
2218
- [Google Chrome][chrome_url]
23-
- [Visual Studio Code][vscode_url]
2419
- [gnome-terminal][gnome-terminal_url]
2520

2621
## Usage
@@ -47,12 +42,6 @@ Add the tools cookbook to your runlist, e.g. in a role:
4742
Note that the default recipe is a No-Op, so you need to add the tools you want. This cookbook is moving to resources and most recipes are only
4843
shortcuts for those resources so the preferred way is to create a wrapper cookbook and just resources since it is more flexible and stable that way.
4944

50-
### Attributes
51-
52-
#### resolver
53-
- `['codenamephp']['dev']['vscode']['extensions']` Is a hashmap with the usernames as keys and the extensions for each users as array. Defaults to `{}` so no extensions are installed. This is now deprecated. Build a wrapper cookbook and use the resources
54-
Example: `['codenamephp']['dev']['vscode']['extensions'] = {'user1' => ['ext1', 'ext2']}`
55-
5645
## Resources
5746

5847
### Jetbrains Toolbox
@@ -98,58 +87,6 @@ codenamephp_dev_chrome 'install chrome' do
9887
action :remove
9988
end
10089
```
101-
102-
### VisualStudio Code
103-
The `codenamephp_dev_vscode` resource installs or uninstalls the [VisualStudio Code][vscode_url] IDE and extensions. The IDE and extensions are installed by the
104-
`codenamephp_dev_vscode_extensions` resource. Both are extensions to the resources in the [sc_vscode Cookbook by Sous Chefs][sc_vscode_url].
105-
106-
#### Actions
107-
- `:install`: Adds the apt repository and installs the IDE via apt
108-
- `:uninstall`: Removes IDE package via apt
109-
110-
#### Properties
111-
- `users_extensions`: Hash with the users as keys and an array of extension names as strings as values that will be installed
112-
113-
#### Examples
114-
```ruby
115-
# Minimal parameters
116-
codenamephp_dev_vscode 'Install VSCode'
117-
118-
# With extensions
119-
codenamephp_dev_vscode 'Install extensions' do
120-
users_extensions 'user1' => %w[ext1 ext2], 'user2' => %w[ext2, ext3]
121-
end
122-
123-
# Uninstall
124-
codenamephp_dev_vscode 'Uninstall VSCode' do
125-
action :uninstall
126-
end
127-
```
128-
129-
### VisualStudio Code Extensions
130-
The `codenamephp_dev_vscode_extensions` resource installs or uninstalls extensions for the [VisualStudio Code][vscode_url] IDE. It's an extension to the resource in the [sc_vscode Cookbook by Sous Chefs][sc_vscode_url].
131-
132-
#### Actions
133-
- `:install`: Installs the given extensions for the given users
134-
- `:uninstall`: removes the given extensions for the given users
135-
136-
#### Properties
137-
- `users_extensions`: Hash with the users as keys and an array of extension names as strings as values that will be uninstalled
138-
139-
#### Examples
140-
```ruby
141-
# Minmal parameters
142-
codenamephp_dev_vscode_extensions 'Install extensions' do
143-
users_extensions 'user1' => %w[ext1 ext2], 'user2' => %w[ext2, ext3]
144-
end
145-
146-
# Uninstall
147-
codenamephp_dev_vscode_extensions 'Uninstall extensions' do
148-
action :uninstall
149-
users_extensions 'user1' => %w[ext1 ext2], 'user2' => %w[ext2, ext3]
150-
end
151-
```
152-
15390
## Recipes
15491
The recipes are just shortcuts for simple use cases so the tools can be installed e.g. with the chef server gui. For more complex use cases the resources
15592
should be used.
@@ -166,18 +103,12 @@ Just installs the gnome-terminal from package.
166103
### Unzip
167104
Just installs unzip from package (no gui client is installed)
168105

169-
### VSCode
170-
Installs [VSCode][vscode_url] from package using the [Sous Chefs vscode cookbook][sc_vscode_url]. Extensions can also be installed by giving the users and extensions
171-
as hashmap in the attributes.
172-
173106
### Jetbrains Toolbox
174107
The `jetbrains_toolbox` recipe installs the jetbrains toolbox to a shared location and adds an X-Server startup script so it will be installed for each user on first
175108
login.
176109

177110
[chrome_url]: https://www.google.de/chrome
178-
[vscode_url]: https://code.visualstudio.com/
179111
[gnome-terminal_url]: https://en.wikipedia.org/wiki/GNOME_Terminal
180112
[google_dns_url]: https://developers.google.com/speed/public-dns/
181113
[virtualbox_url]: https://www.virtualbox.org/
182-
[sc_vscode_url]: https://github.com/sous-chefs/vscode
183114
[jetbrains_toolbox_url]: https://www.jetbrains.com/toolbox-app/

0 commit comments

Comments
 (0)