Skip to content

windows cookbook upgrade #23

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cookbooks/windows/.delivery/project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
remote_file = "https://github.com/chef-cookbooks/community_cookbook_tools/master/delivery/project.toml"
1 change: 1 addition & 0 deletions cookbooks/windows/.github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @chef-cookbooks/windows-team
26 changes: 26 additions & 0 deletions cookbooks/windows/.github/ISSUE_TEMPLATE/BUG_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 🐛 Bug Report
about: If something isn't working as expected 🤔.

---

### Cookbook version
[Version of the cookbook where you are encountering the issue]

### Chef-client version
[Version of chef-client in your environment]

### Platform Details
[Operating system distribution and release version. Cloud provider if running in the cloud]

### Scenario:
[What you are trying to achieve and you can't?]

### Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]

### Expected Result:
[What are you expecting to happen as the consequence of above reproduction steps?]

### Actual Result:
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: 🚀 Enhancement Request
about: I have a suggestion (and may want to implement it 🙂)!

---

### Describe the Enhancement:
[What you are trying to achieve that you can't?]

### Describe the Need:

[What kind of user do you believe would utilize this enhancement, and how many users might want this functionality]

### Current Alternative
[Is there a current alternative that you can utilize to workaround the lack of this enhancement]

### Can We Help You Implement This?:
[The best way to ensure your enhancement is built is to help implement the enhancement yourself. If you're interested in helping out we'd love to give you a hand to make this possible. Let us know if there's something you need.]
13 changes: 13 additions & 0 deletions cookbooks/windows/.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: 🤗 Support Question
about: If you have a question 💬, please check out our Slack!

---

We use GitHub issues to track bugs and feature requests. If you need help please post to our Mailing List or join the Chef Community Slack.

* Chef Community Slack at http://community-slack.chef.io/.
* Chef Mailing List https://discourse.chef.io/


Support issues opened here will be closed and redirected to Slack or Discourse.
14 changes: 14 additions & 0 deletions cookbooks/windows/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Description

[Describe what this change achieves]

### Issues Resolved

[List any existing issues this PR resolves]

### Check List

- [ ] All tests pass. See <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD>
- [ ] New functionality includes testing.
- [ ] New functionality has been documented in the README if applicable
- [ ] All commits have been signed for the Developer Certificate of Origin. See <https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD>
49 changes: 49 additions & 0 deletions cookbooks/windows/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
*.rbc
.config
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
_Store
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
*.tmp
*.bk
*.bkup

# ruby/bundler files
.ruby-version
.ruby-gemset
.rvmrc
Gemfile.lock
.bundle
*.gem

# YARD artifacts
.yardoc
_yardoc
doc/
.idea

# chef stuff
Berksfile.lock
.kitchen
kitchen.local.yml
vendor/
.coverage/
.zero-knife.rb
Policyfile.lock.json

# vagrant stuff
.vagrant/
.vagrant.d/
.kitchen/
46 changes: 46 additions & 0 deletions cookbooks/windows/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# rubocop todo

Lint/HandleExceptions:
Exclude:
- 'libraries/registry_helper.rb'
- 'libraries/windows_helper.rb'

Lint/ShadowingOuterLocalVariable:
Exclude:
- 'libraries/registry_helper.rb'

Lint/UselessAssignment:
Exclude:
- 'libraries/registry_helper.rb'

Metrics/BlockNesting:
Max: 5

Naming/AccessorMethodName:
Exclude:
- 'libraries/version.rb'

Style/ClassVars:
Exclude:
- 'libraries/registry_helper.rb'

Style/IfInsideElse:
Exclude:
- 'libraries/powershell_helper.rb'

Style/IfUnlessModifier:
Exclude:
- 'libraries/registry_helper.rb'
- 'libraries/version.rb'
- 'libraries/windows_helper.rb'
- 'libraries/windows_privileged.rb'
- 'providers/dns.rb'
- 'resources/certificate_binding.rb'
- 'resources/pagefile.rb'
- 'resources/task.rb'
- 'resources/zipfile.rb'

Style/RegexpLiteral:
Exclude:
- 'resources/task.rb'
- 'test/**/*.rb'
7 changes: 7 additions & 0 deletions cookbooks/windows/Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://supermarket.chef.io'

metadata

group :integration do
cookbook 'test', path: './test/cookbooks/test'
end
Loading