cookbook 'msys2', '= 1.0.3'
msys2 (13) Versions 1.0.3 Follow0
Installs/Configures MSYS2
cookbook 'msys2', '= 1.0.3', :supermarket
knife supermarket install msys2
knife supermarket download msys2
MSYS2 Cookbook
This cookbook will install MSYS2 and has LWRPs to interact with the MSYS2 environment.
This was built as an alternative for mingw that focuses moreso on the MSYS2 environment and allows you to utilize MSYS2 like a small UNIX environment within your Windows node.
Platform
- Windows
Recipes
- default: Will install MSYS2, optionally update all of the packages, and optionally install packages set in the attributes.
LWRPs
Bolded actions are the default actions.
-
msys2_installer
: Installs MSYS2.-
:run
: Installs MSYS2. - Configured with
node['msys2']['install_dir']
.
-
-
msys2_package
: Installs a package in MSYS2.-
:install
: Installs a package. -
:remove
: Removes a package.
-
-
msys2_execute
: Executes a command within the MSYS2 environment.-
:run
: Runs a command. -
cwd
: Runs the command from a different directory. Default directory is/
. -
returns
: Checks the return value for success. Default successful return value is0
. -
environment
: A hash that contains environmental variables that should be set before execution. -
live_stream
: Outputs the command in execution as it runs. -
sensitive
: Prevents all output from being written out due to sensitive information. -
msystem
: Sets the MSYS2 environment to run the command from. Available values are:msys :mingw32 :mingw64
.
-
-
msys2_update
: Updates all packages in MSYS2.-
:run
: Updates all packages in MSYS2.
-
Attributes
-
node['msys2']['install_dir']
: The directory to install MSYS2 to. -
node['msys2']['auto_update']
: Will automatically update all packages whenmsys2::default
is run. -
node['msys2']['packages']
: Packages to assure are installed whenmsys2::default
is run. -
node['msys2']['default_env']
: The default MSYS2 environment to run commands in. Options include::msys :mingw32 :mingw64
. -
node['msys2']['verbose']
: Makes all commands run verbose. -
node['msys2']['override_package']
: Makes MSYS2 handle allpackage
resources run on the Windows node. -
node['msys2']['override_execute']
: Makes MSYS2 handle allexecute
resources run on the Windows node.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.3 passed this metric
Contributing File Metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
1.0.3 failed this metric
Chef/Correctness/IncorrectLibraryInjection: Libraries should be injected into the Chef::DSL::Recipe class and not Chef::Recipe or Chef::Provider classes directly. (https://docs.chef.io/workstation/cookstyle/chef_correctness_incorrectlibraryinjection): msys2/recipes/default.rb: 7
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/execute.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/installer.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/package.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/update.rb: 1
Chef/Modernize/DefinesChefSpecMatchers: ChefSpec matchers are now auto generated by ChefSpec 7.1+ and do not need to be defined in a cookbook (https://docs.chef.io/workstation/cookstyle/chef_modernize_defineschefspecmatchers): msys2/libraries/matchers.rb: 1
Chef/Modernize/PropertyWithNameAttribute: Resource property sets name_attribute instead of name_property (https://docs.chef.io/workstation/cookstyle/chef_modernize_propertywithnameattribute): msys2/resources/execute.rb: 12
Chef/Modernize/PropertyWithNameAttribute: Resource property sets name_attribute instead of name_property (https://docs.chef.io/workstation/cookstyle/chef_modernize_propertywithnameattribute): msys2/resources/package.rb: 12
Chef/RedundantCode/LongDescriptionMetadata: The long_description metadata.rb method is not used and is unnecessary in cookbooks. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_longdescriptionmetadata): msys2/metadata.rb: 6
Chef/RedundantCode/NamePropertyIsRequired: Resource properties marked as name properties should not also be required properties (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_namepropertyisrequired): msys2/resources/execute.rb: 12
Chef/RedundantCode/NamePropertyIsRequired: Resource properties marked as name properties should not also be required properties (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_namepropertyisrequired): msys2/resources/package.rb: 12
Chef/RedundantCode/SensitivePropertyInResource: Every Chef Infra resource already includes a sensitive property with a default value of false. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_sensitivepropertyinresource): msys2/resources/execute.rb: 17
Chef/RedundantCode/UseCreateIfMissing: Use the :create_if_missing action instead of not_if with a ::File.exist(FOO) check. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_usecreateifmissing): msys2/resources/installer.rb: 13
Chef/RedundantCode/UseCreateIfMissing: Use the :create_if_missing action instead of not_if with a ::File.exist(FOO) check. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_usecreateifmissing): msys2/resources/installer.rb: 17
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
1.0.3 passed this metric
Testing File Metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.3 passed this metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
1.0.3 failed this metric
Chef/Correctness/IncorrectLibraryInjection: Libraries should be injected into the Chef::DSL::Recipe class and not Chef::Recipe or Chef::Provider classes directly. (https://docs.chef.io/workstation/cookstyle/chef_correctness_incorrectlibraryinjection): msys2/recipes/default.rb: 7
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/execute.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/installer.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/package.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/update.rb: 1
Chef/Modernize/DefinesChefSpecMatchers: ChefSpec matchers are now auto generated by ChefSpec 7.1+ and do not need to be defined in a cookbook (https://docs.chef.io/workstation/cookstyle/chef_modernize_defineschefspecmatchers): msys2/libraries/matchers.rb: 1
Chef/Modernize/PropertyWithNameAttribute: Resource property sets name_attribute instead of name_property (https://docs.chef.io/workstation/cookstyle/chef_modernize_propertywithnameattribute): msys2/resources/execute.rb: 12
Chef/Modernize/PropertyWithNameAttribute: Resource property sets name_attribute instead of name_property (https://docs.chef.io/workstation/cookstyle/chef_modernize_propertywithnameattribute): msys2/resources/package.rb: 12
Chef/RedundantCode/LongDescriptionMetadata: The long_description metadata.rb method is not used and is unnecessary in cookbooks. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_longdescriptionmetadata): msys2/metadata.rb: 6
Chef/RedundantCode/NamePropertyIsRequired: Resource properties marked as name properties should not also be required properties (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_namepropertyisrequired): msys2/resources/execute.rb: 12
Chef/RedundantCode/NamePropertyIsRequired: Resource properties marked as name properties should not also be required properties (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_namepropertyisrequired): msys2/resources/package.rb: 12
Chef/RedundantCode/SensitivePropertyInResource: Every Chef Infra resource already includes a sensitive property with a default value of false. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_sensitivepropertyinresource): msys2/resources/execute.rb: 17
Chef/RedundantCode/UseCreateIfMissing: Use the :create_if_missing action instead of not_if with a ::File.exist(FOO) check. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_usecreateifmissing): msys2/resources/installer.rb: 13
Chef/RedundantCode/UseCreateIfMissing: Use the :create_if_missing action instead of not_if with a ::File.exist(FOO) check. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_usecreateifmissing): msys2/resources/installer.rb: 17
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
1.0.3 passed this metric
Testing File Metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.3 failed this metric
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/execute.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/installer.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/package.rb: 1
Chef/Deprecations/ResourceWithoutUnifiedTrue: Set `unified_mode true` in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 (April 2022) when Unified Mode becomes the default. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue): msys2/resources/update.rb: 1
Chef/Modernize/DefinesChefSpecMatchers: ChefSpec matchers are now auto generated by ChefSpec 7.1+ and do not need to be defined in a cookbook (https://docs.chef.io/workstation/cookstyle/chef_modernize_defineschefspecmatchers): msys2/libraries/matchers.rb: 1
Chef/Modernize/PropertyWithNameAttribute: Resource property sets name_attribute instead of name_property (https://docs.chef.io/workstation/cookstyle/chef_modernize_propertywithnameattribute): msys2/resources/execute.rb: 12
Chef/Modernize/PropertyWithNameAttribute: Resource property sets name_attribute instead of name_property (https://docs.chef.io/workstation/cookstyle/chef_modernize_propertywithnameattribute): msys2/resources/package.rb: 12
Chef/RedundantCode/LongDescriptionMetadata: The long_description metadata.rb method is not used and is unnecessary in cookbooks. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_longdescriptionmetadata): msys2/metadata.rb: 6
Chef/RedundantCode/NamePropertyIsRequired: Resource properties marked as name properties should not also be required properties (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_namepropertyisrequired): msys2/resources/execute.rb: 12
Chef/RedundantCode/NamePropertyIsRequired: Resource properties marked as name properties should not also be required properties (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_namepropertyisrequired): msys2/resources/package.rb: 12
Chef/RedundantCode/SensitivePropertyInResource: Every Chef Infra resource already includes a sensitive property with a default value of false. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_sensitivepropertyinresource): msys2/resources/execute.rb: 17
Chef/RedundantCode/UseCreateIfMissing: Use the :create_if_missing action instead of not_if with a ::File.exist(FOO) check. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_usecreateifmissing): msys2/resources/installer.rb: 13
Chef/RedundantCode/UseCreateIfMissing: Use the :create_if_missing action instead of not_if with a ::File.exist(FOO) check. (https://docs.chef.io/workstation/cookstyle/chef_redundantcode_usecreateifmissing): msys2/resources/installer.rb: 17
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
1.0.3 passed this metric
Testing File Metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.3 failed this metric
1.0.3 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number