-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio 2017 and network installs #11
Closed
Closed
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
169837f
If resource source is set to nil then assume that we are doing a netw…
taliesins 508333f
Only throw an exception when src is nil if we have not specified an i…
3ab9f46
Chef windows_package uses returns instead of success_code
cd15ecd
Comparing values. Not setting them.
8946cbf
If a value is nil or empty we should consider it to be overridden and…
f01608a
Use empty? rather
be9be71
source attribute is now optional
959d08d
replace empty with blank
acff8a4
remove blank
291c331
Make it a function
d8fe130
Add Visual Studio 2017
623e5c7
Better to use casecmp instead of downcase ==
a96ccea
Source is a required parameter, so only evaluate when we know its not…
5e74354
Use preferred ruby style for checking if nil
0dcb25d
Property does not exist (copied over from seven_zip extract)
ac05ea9
Use empty instead of blank
f0589bf
Display whats going on for debug purposes
a9af16a
Deal with the following installation options:
6905bdd
Takes a long time, lets see what the progress is
e0c2a03
At the moment Visual Studio is waiting on user input if its run from …
aaeb2d9
Just enumerate attributes directly.
a595002
Added missing square bracket
19bd9d7
Update documentation for Visual Studio 2017 and network installs
93ac50d
Rubocop suggestions
bd0ee84
More rubocop suggestions
4533909
Ignores rubocop BlockLength cop for all spec and attributes files
ryangribble 45f0a1b
Ignores rubocop BlockLength cop for action and converge_by methods
ryangribble 16e5207
Fixes LineLength violation
ryangribble cee77c9
Fixes LineLength violation
ryangribble 84eb80b
Fixes cyclomatic complexity violation by splitting prepare_vs2017_opt…
ryangribble be4bb97
Fixes Gemfile ordering violation
ryangribble 3d93400
Merge pull request #1 from TattsGroup/NetworkInstall
taliesins 757149c
Fix lint suggestions
ecbaeae
Add support for updates via network share
60baa38
if we are specifying a blackslash or forward slash we are point to a …
e98dbd0
These references are not used
92e52a5
Handle empty string and nil strings
155b178
Fixed RuboCop errors.
bemehiser 0b3eb7c
Merge pull request #2 from bemehiser/NetworkInstall
taliesins e9ac772
array literals should use round brackets
taliesins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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,153 @@ | ||
|
||
# | ||
# Author:: Shawn Neal (<[email protected]>) | ||
# Cookbook Name:: visualstudio | ||
# Attribute:: vs2017 | ||
# | ||
# Copyright 2015, Shawn Neal | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# Currently you cannot change this, doing so will break the cookbook | ||
default['visualstudio']['2017']['install_dir'] = | ||
(ENV['ProgramFiles(x86)'] || 'C:\Program Files (x86)') + '\Microsoft Visual Studio 16.0' | ||
default['visualstudio']['2017']['all'] = false | ||
default['visualstudio']['2017']['allWorkloads'] = false | ||
default['visualstudio']['2017']['includeRecommended'] = true | ||
default['visualstudio']['2017']['includeOptional'] = false | ||
|
||
# Test Professional w/Update1 https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-test-professional | ||
default['visualstudio']['2017']['testprofessional']['installer_file'] = 'vs_testprofessional.exe' | ||
default['visualstudio']['2017']['testprofessional']['filename'] = 'vs_testprofessional.exe' | ||
default['visualstudio']['2017']['testprofessional']['package_name'] = 'Microsoft Visual Studio Test Professional 2017' | ||
default['visualstudio']['2017']['testprofessional']['checksum'] = '' | ||
default['visualstudio']['2017']['testprofessional']['default_source'] = 'https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=TestProfessional&rel=15' | ||
|
||
# Professional w/Update1 | ||
default['visualstudio']['2017']['professional']['installer_file'] = 'vs_professional.exe' | ||
default['visualstudio']['2017']['professional']['filename'] = 'vs_professional.exe' | ||
default['visualstudio']['2017']['professional']['package_name'] = 'Microsoft Visual Studio Professional 2017' | ||
default['visualstudio']['2017']['professional']['checksum'] = '' | ||
default['visualstudio']['2017']['professional']['default_source'] = 'https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&rel=15' | ||
|
||
# Defaults for https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-professional | ||
default['visualstudio']['2017']['professional']['default_install_items'].tap do |h| | ||
h['Microsoft.VisualStudio.Workload.CoreEditor']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Azure']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Data']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.ManagedDesktop']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.ManagedGame']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeCrossPlat']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeDesktop']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeGame']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeMobile']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetCoreTools']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetCrossPlat']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetWeb']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Node']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Office']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Universal']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.VisualStudioExtension']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.WebCrossPlat']['selected'] = true | ||
h['Component.Android.Emulator']['selected'] = true | ||
h['Component.GitHub.VisualStudio']['selected'] = true | ||
h['Microsoft.Component.Blend.SDK.WPF']['selected'] = true | ||
h['Microsoft.Component.HelpViewer']['selected'] = true | ||
h['Microsoft.Net.Component.3.5.DeveloperTools']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.DependencyValidation.Community']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.LinqToSql']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.Phone.Emulator']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.Core']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TypeScript.2.0']['selected'] = true | ||
end | ||
|
||
# Community w/Update 3 | ||
default['visualstudio']['2017']['community']['installer_file'] = 'vs_community.exe' | ||
default['visualstudio']['2017']['community']['filename'] = 'vs_community.exe' | ||
default['visualstudio']['2017']['community']['package_name'] = 'Microsoft Visual Studio Community 2017' | ||
default['visualstudio']['2017']['community']['checksum'] = '' | ||
default['visualstudio']['2017']['community']['default_source'] = 'https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15' | ||
|
||
# Defaults for https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community | ||
default['visualstudio']['2017']['community']['default_install_items'].tap do |h| | ||
h['Microsoft.VisualStudio.Workload.CoreEditor']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Azure']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Data']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.ManagedDesktop']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.ManagedGame']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeCrossPlat']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeDesktop']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeGame']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeMobile']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetCoreTools']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetCrossPlat']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetWeb']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Node']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Office']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Universal']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.VisualStudioExtension']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.WebCrossPlat']['selected'] = true | ||
h['Component.Android.Emulator']['selected'] = true | ||
h['Component.GitHub.VisualStudio']['selected'] = true | ||
h['Microsoft.Component.Blend.SDK.WPF']['selected'] = true | ||
h['Microsoft.Component.HelpViewer']['selected'] = true | ||
h['Microsoft.Net.Component.3.5.DeveloperTools']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.DependencyValidation.Community']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.LinqToSql']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.Phone.Emulator']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.Core']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TypeScript.2.0']['selected'] = true | ||
end | ||
|
||
# Enterprise w/Update1 | ||
default['visualstudio']['2017']['enterprise']['installer_file'] = 'vs_enterprise.exe' | ||
default['visualstudio']['2017']['enterprise']['filename'] = 'vs_enterprise.exe' | ||
default['visualstudio']['2017']['enterprise']['package_name'] = 'Microsoft Visual Studio Enterprise 2017' | ||
default['visualstudio']['2017']['enterprise']['checksum'] = '' | ||
default['visualstudio']['2017']['enterprise']['default_source'] = 'https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprise&rel=15' | ||
|
||
# Defaults for the https://docs.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise | ||
default['visualstudio']['2017']['enterprise']['default_install_items'].tap do |h| | ||
h['Microsoft.VisualStudio.Workload.CoreEditor']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Azure']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Data']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.ManagedDesktop']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.ManagedGame']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeCrossPlat']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeDesktop']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeGame']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NativeMobile']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetCoreTools']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetCrossPlat']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.NetWeb']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Node']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Office']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.Universal']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.VisualStudioExtension']['selected'] = true | ||
h['Microsoft.VisualStudio.Workload.WebCrossPlat']['selected'] = true | ||
h['Component.Android.Emulator']['selected'] = true | ||
h['Component.GitHub.VisualStudio']['selected'] = true | ||
h['Microsoft.Component.Blend.SDK.WPF']['selected'] = true | ||
h['Microsoft.Component.HelpViewer']['selected'] = true | ||
h['Microsoft.Net.Component.3.5.DeveloperTools']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.LinqToSql']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.Phone.Emulator']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.CodedUITest']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.Core']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.FeedbackClient']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.MicrosoftTestManager']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.WebLoadTest']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TestTools.Core']['selected'] = true | ||
h['Microsoft.VisualStudio.Component.TypeScript.2.0']['selected'] = true | ||
end |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is redundant, the
chef-client
run merges all files in the attributes folder anyway.