chef-sugar-ng 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/.github/lock.yml +3 -0
  3. data/.github/reaction.yml +1 -0
  4. data/.gitignore +26 -0
  5. data/.kitchen.yml +16 -0
  6. data/.travis.yml +17 -0
  7. data/CHANGELOG.md +261 -0
  8. data/CONTRIBUTING.md +20 -0
  9. data/Gemfile +2 -0
  10. data/LICENSE +201 -0
  11. data/README.md +540 -0
  12. data/Rakefile +11 -0
  13. data/chef-sugar-ng.gemspec +33 -0
  14. data/lib/chef/sugar.rb +51 -0
  15. data/lib/chef/sugar/architecture.rb +171 -0
  16. data/lib/chef/sugar/cloud.rb +192 -0
  17. data/lib/chef/sugar/constraints.rb +108 -0
  18. data/lib/chef/sugar/constraints_dsl.rb +83 -0
  19. data/lib/chef/sugar/core_extensions.rb +19 -0
  20. data/lib/chef/sugar/core_extensions/array.rb +34 -0
  21. data/lib/chef/sugar/core_extensions/object.rb +27 -0
  22. data/lib/chef/sugar/core_extensions/string.rb +66 -0
  23. data/lib/chef/sugar/data_bag.rb +146 -0
  24. data/lib/chef/sugar/docker.rb +40 -0
  25. data/lib/chef/sugar/filters.rb +227 -0
  26. data/lib/chef/sugar/init.rb +62 -0
  27. data/lib/chef/sugar/ip.rb +48 -0
  28. data/lib/chef/sugar/kernel.rb +49 -0
  29. data/lib/chef/sugar/kitchen.rb +40 -0
  30. data/lib/chef/sugar/node.rb +213 -0
  31. data/lib/chef/sugar/platform.rb +327 -0
  32. data/lib/chef/sugar/platform_family.rb +179 -0
  33. data/lib/chef/sugar/ruby.rb +51 -0
  34. data/lib/chef/sugar/run_context.rb +41 -0
  35. data/lib/chef/sugar/shell.rb +147 -0
  36. data/lib/chef/sugar/vagrant.rb +77 -0
  37. data/lib/chef/sugar/version.rb +21 -0
  38. data/lib/chef/sugar/virtualization.rb +151 -0
  39. data/libraries/chef-sugar.rb +1 -0
  40. data/metadata.rb +24 -0
  41. data/recipes/default.rb +20 -0
  42. data/spec/spec_helper.rb +25 -0
  43. data/spec/support/shared_examples.rb +20 -0
  44. data/spec/unit/chef/sugar/architecture_spec.rb +129 -0
  45. data/spec/unit/chef/sugar/cloud_spec.rb +149 -0
  46. data/spec/unit/chef/sugar/constraints_spec.rb +45 -0
  47. data/spec/unit/chef/sugar/core_extensions/array_spec.rb +10 -0
  48. data/spec/unit/chef/sugar/core_extensions/object_spec.rb +62 -0
  49. data/spec/unit/chef/sugar/core_extensions/string_spec.rb +48 -0
  50. data/spec/unit/chef/sugar/data_bag_spec.rb +118 -0
  51. data/spec/unit/chef/sugar/docker_spec.rb +39 -0
  52. data/spec/unit/chef/sugar/init_spec.rb +74 -0
  53. data/spec/unit/chef/sugar/ip_spec.rb +53 -0
  54. data/spec/unit/chef/sugar/kernel_spec.rb +16 -0
  55. data/spec/unit/chef/sugar/kitchen_spec.rb +18 -0
  56. data/spec/unit/chef/sugar/node_spec.rb +172 -0
  57. data/spec/unit/chef/sugar/platform_family_spec.rb +166 -0
  58. data/spec/unit/chef/sugar/platform_spec.rb +342 -0
  59. data/spec/unit/chef/sugar/ruby_spec.rb +39 -0
  60. data/spec/unit/chef/sugar/run_context_spec.rb +19 -0
  61. data/spec/unit/chef/sugar/shell_spec.rb +104 -0
  62. data/spec/unit/chef/sugar/vagrant_spec.rb +37 -0
  63. data/spec/unit/chef/sugar/virtualization_spec.rb +135 -0
  64. data/spec/unit/recipes/default_spec.rb +9 -0
  65. metadata +202 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e208d42237944b5de6cf604c300a02cab967703553265f857c66f1460be081bc
4
+ data.tar.gz: cd5a6701ef2c331e85d808205fd49e31abbe0697379a1b5e57b327a04334752a
5
+ SHA512:
6
+ metadata.gz: d4b23f979610bb5b6e08e66de2c376af3dece2536685a4835aa46310480e144c76dcbb98ab55281f018749bff5f31607810c4cdd08eed22687cc2db3472501b2
7
+ data.tar.gz: b644b1e971e18c33155db029c7e6e0e4e09a5eae4b6de6fca358ffae02d7e2228321acbaca1377888f10cd257b97750c9d128cec071c575aa7bca96f05bfea5d
data/.github/lock.yml ADDED
@@ -0,0 +1,3 @@
1
+ daysUntilLock: 90
2
+ lockLabel: false
3
+ lockComment: false
@@ -0,0 +1 @@
1
+ reactionComment: false
data/.gitignore ADDED
@@ -0,0 +1,26 @@
1
+ *~
2
+ *#
3
+ .#*
4
+ \#*#
5
+ .*.sw[a-z]
6
+ *.un~
7
+ *.tmp
8
+ *.bk
9
+ *.bkup
10
+ .kitchen.local.yml
11
+ Berksfile.lock
12
+ Gemfile.lock
13
+
14
+ .bundle/
15
+ .cache/
16
+ .kitchen/
17
+ .vagrant/
18
+ .vagrant.d/
19
+ .yardoc/
20
+ bin/
21
+ coverage/
22
+ doc/
23
+ pkg/
24
+ tmp/
25
+ vendor/
26
+ .rspec
data/.kitchen.yml ADDED
@@ -0,0 +1,16 @@
1
+ driver:
2
+ name: vagrant
3
+
4
+ provisioner:
5
+ name: chef_zero
6
+ deprecations_as_errors: true
7
+
8
+ platforms:
9
+ - name: centos-6
10
+ - name: centos-7
11
+ - name: ubuntu-14.04
12
+ - name: ubuntu-16.04
13
+
14
+ suites:
15
+ - name: default
16
+ run_list: chef-sugar::default
data/.travis.yml ADDED
@@ -0,0 +1,17 @@
1
+ sudo: false
2
+
3
+ rvm:
4
+ - 2.2.9
5
+ - 2.3.6
6
+ - 2.4.3
7
+ - 2.5.0
8
+
9
+ branches:
10
+ only:
11
+ - master
12
+
13
+ cache: bundler
14
+
15
+ bundler_args: --jobs 7
16
+
17
+ script: bundle exec rake
data/CHANGELOG.md ADDED
@@ -0,0 +1,261 @@
1
+ # Chef Sugar Changelog
2
+
3
+ This file is used to list changes made in each version of the chef-sugar cookbook and gem.
4
+
5
+ ## v4.2.1 (2018-12-06)
6
+
7
+ - Repackaged with an older stove to remove the metadata.rb on the Supermarket for older chef-client releases
8
+
9
+ ## v4.2.0 (2018-12-05)
10
+
11
+ - Added a new parallels? helper
12
+ - Added support for the Raspberry Pi 1 and Zero to armhf? helper
13
+ - Added a centos_final? helper
14
+
15
+ ## v4.1.0 (2018-08-16)
16
+
17
+ - Improve the detection of linux hosts with the linux? helper. Amazon Linux and obscure distros will now be properly detected.
18
+
19
+ ## v4.0.1 (2018-08-09)
20
+
21
+ - Add new Debian, Mint, macOS codenames
22
+ - Add new Ubuntu codenames: artful, bionic, cosmic
23
+
24
+ ## v4.0.0 (2018-01-26)
25
+
26
+ - Require Ruby 2.2 or later and Chef 12.10 or later
27
+ - Cookbook now installs the chef-sugar gem via a metadata installation so chef-sugar::default on your runlist is no longer needed
28
+ - Added additional metadata to the cookbook: supports, issue_url, source_url, chef_version.
29
+ - Requirements improved in the readme
30
+
31
+ ## v3.6.0 (2017-10-26)
32
+
33
+ - Add Ubuntu zesty and debian stretch detection
34
+ - Add softlayer? helper
35
+ - Add aarch64? helper
36
+
37
+ ## v3.5.0 (2016-07-12)
38
+
39
+ - Improve the systemd check to not fail on older kernels or Windows hosts
40
+ - Add detection of macOS 10.11 and 10.12
41
+
42
+ ## v3.4.0 (2016-07-18)
43
+
44
+ ### Improvements
45
+
46
+ - Add `virtual?` and `physical?` methods
47
+ - Add Scaleway C1 server (arm arch) support
48
+ - Add IMB s390x support
49
+ - Add missing Ubuntu release names
50
+
51
+ ### Bug Fixes
52
+
53
+ - Drop Ruby 2.0.0 support from Travis test matrix
54
+ - Pin to Rack 1.6 (dev dep)
55
+
56
+ ## v3.3.0 (2016-01-11)
57
+
58
+ ### Improvements
59
+
60
+ - Break up `Chef::Sugar::Constraints` into a class and a dsl file
61
+ - Add `platform_version` method with full constraints comparison support
62
+
63
+ ## v3.2.0 (2015-12-10)
64
+
65
+ ### Improvements
66
+
67
+ - Add platform matchers for `debian` and `fedora`
68
+ - Add `openvz` support under virtualization
69
+ - Add init system detection support
70
+ - Add support for `nexus`, `ios_xr` platforms and `wrlinux` platform_family
71
+ - Add additional `aix` helpers
72
+
73
+ ### Bug Fixes
74
+
75
+ - Properly expose `Architecture#i386?` in the DSL
76
+
77
+ ## v3.1.1 (2015-06-23)
78
+
79
+ ### Improvements
80
+
81
+ - Update Intel CPU types based on existing Fauxhai data
82
+ - Update SPARC logic and 32/64-bit logic for x86 and i386
83
+
84
+ ### Bug Fixes
85
+
86
+ - Fix 32-bit logic
87
+ - Fix default behavior to include chef-sugar at compile time
88
+ - Fix Chef 12.1.0 warnings for chef_gem compile time install
89
+ - Fix `redhat_enterprise_linux?` matcher
90
+
91
+ ## v3.0.2 (2015-03-26)
92
+
93
+ ### Improvements
94
+
95
+ - Add helpers for `ppc64` and `ppc64le` architecture
96
+
97
+ ### Bug Fixes
98
+
99
+ - Adjustments to error message
100
+
101
+ ## v3.0.1 (2015-03-20)
102
+
103
+ ### Breaking Changes
104
+
105
+ - Rename `compile_time` `to at_compile_time` - if your recipes are affected by this breaking change, your Chef Client run will produce a verbose error message with details on how to fix the error.
106
+
107
+ ## v3.0.0 (2015-03-17)
108
+
109
+ ### Breaking Changes
110
+
111
+ - Drop support for Ruby 1.9 (it might still work, but it is no longer officially supported)
112
+
113
+ ### Improvements
114
+
115
+ - Remove accidentially committed gem source
116
+ - Bump development dependencies
117
+ - Add `digitalocean?` matcher
118
+ - Expose the `rhel` platform as `el`
119
+ - Add `ppc64le` platform
120
+ - Add helper for determining if architecture is SPARC
121
+ - Add helper for determining if architecture is Intel
122
+ - Add dynamic platform/version matchers for Solaris
123
+
124
+ ### Bug Fixes
125
+
126
+ - Reset namespace_options when reaching top-level resources
127
+
128
+ ## v2.5.0 (2015-01-05)
129
+
130
+ ### Improvements
131
+
132
+ - Add `data_bag_item_for_environment` function
133
+ - Add `kvm?` matcher
134
+ - Add `virtualbox?` matcher
135
+
136
+ ### Bug Fixes
137
+
138
+ - Use `.key?` to check for hash key presence, raising an `AttributeDoesNotExist` error sooner
139
+
140
+ ## v2.4.1 (2014-10-12)
141
+
142
+ - No changes from v2.4.0 - forced a new version upload to the Chef Supermarket
143
+
144
+ ## v2.4.0 (2014-10-12)
145
+
146
+ ### Improvements
147
+
148
+ - Add `docker?` matcher
149
+
150
+ ## v2.3.2 (2014-10-07)
151
+
152
+ ### Big Fixues
153
+
154
+ - Include `amd64` in `_64_bit?` check
155
+
156
+ ## v2.3.1 (2014-10-07)
157
+
158
+ ### Improvements
159
+
160
+ - Check all 64-bit architectures that may be reported by Ohai
161
+
162
+ ### Bug Fixes
163
+
164
+ - Be more tolerant of `nil` values return from sub functions
165
+ - Check to make sure `node['domain']` is not `nil` before calling `#include?`
166
+
167
+ ## v2.3.0 (2014-09-24)
168
+
169
+ ### Improvements
170
+
171
+ - Add `vmware?` matcher
172
+ - Allow the attribute DSL to access parent attributes
173
+
174
+ ### Bug Fixes
175
+
176
+ - Return `true` or `false` from all Boolean methods (instead of `nil` or truthy values)
177
+
178
+ ## v2.2.0 (2014-08-20)
179
+
180
+ ### Improvements
181
+
182
+ - Add `smartos?` matcher
183
+ - Add `omnios?` matcher
184
+
185
+ ## v2.1.0 (2014-06-26)
186
+
187
+ ### Improvements
188
+
189
+ - Add `solaris2?` matcher
190
+ - Add `aix?` matcher
191
+ - Add 'lxc?' matcher
192
+
193
+ ### Bug Fixes
194
+
195
+ - Fix a bug in namespace memoization during attribute initialization
196
+
197
+ ## v2.0.0 (2014-06-16)
198
+
199
+ ### Breaking
200
+
201
+ - Remove `not_linux?` method
202
+ - Remove `not_windows?` method
203
+
204
+ ### Improvements
205
+
206
+ - Miscellaneous spelling fixes
207
+ - Update a failing unit test for `installed?`
208
+ - Add Mac OS X to the list of platforms (Yosemite)
209
+ - Upgrade to RSpec 3
210
+ - Fix `which` (and `installed?` and `installed_at_version?`) when given an absolute path
211
+ - Fix `linux?` check to only return true on real linuxes
212
+
213
+ ## v1.3.0 (2014-05-05)
214
+
215
+ - Check both `$stdout` and `$stderr` in `version_for`
216
+ - Add additional platform versions
217
+ - Make `includes_recipe?` a top-level API (instead of just Node)
218
+ - Match on the highest version number instead of direct equality checking on platform versions
219
+ - Define `Object#blank?` as a core extension
220
+ - Define `String#flush` as a core extension
221
+ - Remove Stove
222
+
223
+ ## v1.2.6 (2014-03-16)
224
+
225
+ - Fix a bug in `vagrant?` returning false on newer Vagrant versions
226
+ - Remove Coveralls
227
+
228
+ ## v1.2.4 (2014-03-13)
229
+
230
+ - See (1.2.2), but I botched the release
231
+
232
+ ## v1.2.2 (2014-03-13)
233
+
234
+ - Fix a critical bug with `encrypted_data_bag_item` using the wrong key
235
+
236
+ ## v1.2.0 (2014-03-09)
237
+
238
+ - Add `namespace` functionality for specifying attributes in a DSL
239
+ - Add constraints helpers for comparing version strings
240
+ - Add `require_chef_gem` to safely require and degrade if a gem is not installed
241
+ - Add `deep_fetch` and `deep_fetch!` to fetch deeply nested keys
242
+ - Accept an optional secret key in `encrypted_data_bag_item` helper and raise a helpful error if one is not set (NOTE: this changes the airity of the method, but it's backward-compatible because Ruby is magic)
243
+ - Add Stove for releasing
244
+ - Updated copyrights for 2014
245
+
246
+ ## v1.1.0 (2013-12-10)
247
+
248
+ - Add `cloudstack?` helper
249
+ - Add data bag helpers
250
+ - Remove foodcritic checks
251
+ - Upgrade development gem versions
252
+ - Randomize spec order
253
+
254
+ ## v1.0.1 (2013-10-15)
255
+
256
+ - Add development recipe
257
+ - Add `compile_time`, `before`, and `after` filters
258
+
259
+ ## v1.0.0 (2013-10-15)
260
+
261
+ - First public release
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,20 @@
1
+ Contributing to Chef Sugar
2
+ ===============================
3
+ The process for contributing to Chef sugar is rather straight-forward. It is unlikely that you'll need to modify the actual Chef recipe, so it's assumed that you want to work on the Gem itself.
4
+
5
+ 1. Fork the repository on GitHub.
6
+ 2. Clone your fork.
7
+ 3. Create a new, semantically-named branch:
8
+
9
+ $ git checkout -b my_feature_branch
10
+
11
+ 4. Make any changes, ensuring you write adequate test coverage.
12
+ 5. Document your changes (YARD).
13
+ 6. Run the tests (make sure they pass).
14
+ 7. Submit a Pull Request on GitHub.
15
+ 8. (optional) Ping me on Twitter (@sethvargo)
16
+
17
+ Additionally, please **DO NOT**:
18
+ - Modify the version of the cookbook or gem.
19
+ - Update the CHANGELOG
20
+ - Make unnecessary changes to the gemspec
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2013-2015 Seth Vargo
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.