berkshelf 5.2.0 → 8.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +19 -47
  3. data/Rakefile +14 -4
  4. data/berkshelf.gemspec +61 -40
  5. data/bin/berks +2 -2
  6. data/lib/berkshelf/api-client.rb +1 -0
  7. data/lib/berkshelf/api_client/chef_server_connection.rb +29 -0
  8. data/lib/berkshelf/api_client/connection.rb +57 -0
  9. data/lib/berkshelf/api_client/errors.rb +10 -0
  10. data/lib/berkshelf/api_client/remote_cookbook.rb +56 -0
  11. data/lib/berkshelf/api_client/version.rb +5 -0
  12. data/lib/berkshelf/api_client.rb +24 -0
  13. data/lib/berkshelf/berksfile.rb +149 -122
  14. data/lib/berkshelf/cached_cookbook.rb +127 -24
  15. data/lib/berkshelf/chef_config_compat.rb +51 -0
  16. data/lib/berkshelf/chef_repo_universe.rb +47 -0
  17. data/lib/berkshelf/cli.rb +143 -174
  18. data/lib/berkshelf/commands/shelf.rb +20 -19
  19. data/lib/berkshelf/community_rest.rb +59 -94
  20. data/lib/berkshelf/config.rb +97 -127
  21. data/lib/berkshelf/cookbook_store.rb +7 -6
  22. data/lib/berkshelf/core_ext/file.rb +1 -1
  23. data/lib/berkshelf/core_ext/file_utils.rb +4 -4
  24. data/lib/berkshelf/core_ext.rb +1 -1
  25. data/lib/berkshelf/dependency.rb +25 -32
  26. data/lib/berkshelf/downloader.rb +66 -39
  27. data/lib/berkshelf/errors.rb +23 -17
  28. data/lib/berkshelf/file_syncer.rb +24 -47
  29. data/lib/berkshelf/formatters/human.rb +7 -5
  30. data/lib/berkshelf/formatters/json.rb +6 -6
  31. data/lib/berkshelf/installer.rb +120 -111
  32. data/lib/berkshelf/location.rb +14 -14
  33. data/lib/berkshelf/locations/base.rb +1 -1
  34. data/lib/berkshelf/locations/git.rb +16 -24
  35. data/lib/berkshelf/locations/github.rb +2 -2
  36. data/lib/berkshelf/locations/path.rb +2 -2
  37. data/lib/berkshelf/lockfile.rb +326 -328
  38. data/lib/berkshelf/logger.rb +64 -1
  39. data/lib/berkshelf/mixin/git.rb +6 -5
  40. data/lib/berkshelf/packager.rb +44 -10
  41. data/lib/berkshelf/resolver/graph.rb +1 -1
  42. data/lib/berkshelf/resolver.rb +4 -4
  43. data/lib/berkshelf/ridley_compat.rb +109 -0
  44. data/lib/berkshelf/shell.rb +2 -1
  45. data/lib/berkshelf/shell_out.rb +18 -0
  46. data/lib/berkshelf/source.rb +77 -33
  47. data/lib/berkshelf/source_uri.rb +4 -4
  48. data/lib/berkshelf/ssl_policies.rb +38 -0
  49. data/lib/berkshelf/thor.rb +1 -1
  50. data/lib/berkshelf/thor_ext/hash_with_indifferent_access.rb +1 -1
  51. data/lib/berkshelf/thor_ext.rb +1 -1
  52. data/lib/berkshelf/uploader.rb +106 -70
  53. data/lib/berkshelf/validator.rb +13 -5
  54. data/lib/berkshelf/version.rb +1 -1
  55. data/lib/berkshelf/visualizer.rb +16 -11
  56. data/lib/berkshelf.rb +106 -81
  57. data/spec/config/knife.rb +4 -4
  58. data/spec/data/trusted_certs/example.crt +22 -0
  59. data/spec/fixtures/Berksfile +3 -3
  60. data/spec/fixtures/complex-cookbook-path/cookbooks/app/metadata.rb +2 -0
  61. data/spec/fixtures/complex-cookbook-path/cookbooks/jenkins/metadata.rb +2 -0
  62. data/spec/fixtures/complex-cookbook-path/cookbooks/jenkins-config/metadata.rb +4 -0
  63. data/spec/fixtures/cookbook-path/jenkins-config/metadata.rb +3 -3
  64. data/spec/fixtures/cookbook-path-uploader/apt-2.3.6/metadata.rb +2 -0
  65. data/spec/fixtures/cookbook-path-uploader/build-essential-1.4.2/metadata.rb +2 -0
  66. data/spec/fixtures/cookbook-path-uploader/jenkins-2.0.3/metadata.rb +5 -0
  67. data/spec/fixtures/cookbook-path-uploader/jenkins-config-0.1.0/metadata.rb +4 -0
  68. data/spec/fixtures/cookbook-path-uploader/runit-1.5.8/metadata.rb +5 -0
  69. data/spec/fixtures/cookbook-path-uploader/yum-3.0.6/metadata.rb +2 -0
  70. data/spec/fixtures/cookbook-path-uploader/yum-epel-0.2.0/metadata.rb +3 -0
  71. data/spec/fixtures/cookbook-store/jenkins-2.0.3/metadata.rb +5 -5
  72. data/spec/fixtures/cookbook-store/jenkins-2.0.4/metadata.rb +4 -4
  73. data/spec/fixtures/cookbooks/example_cookbook/metadata.rb +3 -3
  74. data/spec/fixtures/cookbooks/example_cookbook-0.5.0/metadata.rb +3 -3
  75. data/spec/spec_helper.rb +56 -64
  76. data/spec/support/chef_api.rb +15 -16
  77. data/spec/support/chef_server.rb +71 -69
  78. data/spec/support/git.rb +59 -58
  79. data/spec/support/kitchen.rb +0 -14
  80. data/spec/support/matchers/file_system_matchers.rb +4 -5
  81. data/spec/support/matchers/filepath_matchers.rb +2 -2
  82. data/spec/support/path_helpers.rb +17 -17
  83. data/spec/support/shared_examples/formatter.rb +1 -1
  84. data/spec/tmp/berkshelf/cookbooks/fake-0.1.0/attributes/default.rb +0 -0
  85. data/spec/tmp/berkshelf/cookbooks/fake-0.1.0/files/default/file.h +0 -0
  86. data/spec/tmp/berkshelf/cookbooks/fake-0.1.0/metadata.rb +2 -0
  87. data/spec/tmp/berkshelf/cookbooks/fake-0.1.0/recipes/default.rb +0 -0
  88. data/spec/tmp/berkshelf/cookbooks/fake-0.1.0/templates/default/template.erb +0 -0
  89. data/spec/tmp/berkshelf/cookbooks/fake-0.2.0/attributes/default.rb +0 -0
  90. data/spec/tmp/berkshelf/cookbooks/fake-0.2.0/files/default/file.h +0 -0
  91. data/spec/tmp/berkshelf/cookbooks/fake-0.2.0/metadata.rb +2 -0
  92. data/spec/tmp/berkshelf/cookbooks/fake-0.2.0/recipes/default.rb +0 -0
  93. data/spec/tmp/berkshelf/cookbooks/fake-0.2.0/templates/default/template.erb +0 -0
  94. data/spec/tmp/berkshelf/cookbooks/fake-1.0.0/attributes/default.rb +0 -0
  95. data/spec/tmp/berkshelf/cookbooks/fake-1.0.0/files/default/file.h +0 -0
  96. data/spec/tmp/berkshelf/cookbooks/fake-1.0.0/metadata.rb +2 -0
  97. data/spec/tmp/berkshelf/cookbooks/fake-1.0.0/recipes/default.rb +0 -0
  98. data/spec/tmp/berkshelf/cookbooks/fake-1.0.0/templates/default/template.erb +0 -0
  99. data/spec/unit/berkshelf/berksfile_spec.rb +84 -105
  100. data/spec/unit/berkshelf/berkshelf/api_client/chef_server_connection_spec.rb +65 -0
  101. data/spec/unit/berkshelf/berkshelf/api_client/connection_spec.rb +157 -0
  102. data/spec/unit/berkshelf/berkshelf/api_client/remote_cookbook_spec.rb +23 -0
  103. data/spec/unit/berkshelf/berkshelf/api_client_spec.rb +9 -0
  104. data/spec/unit/berkshelf/cached_cookbook_spec.rb +45 -47
  105. data/spec/unit/berkshelf/chef_repo_universe_spec.rb +37 -0
  106. data/spec/unit/berkshelf/cli_spec.rb +7 -8
  107. data/spec/unit/berkshelf/community_rest_spec.rb +82 -90
  108. data/spec/unit/berkshelf/config_spec.rb +51 -22
  109. data/spec/unit/berkshelf/cookbook_store_spec.rb +41 -41
  110. data/spec/unit/berkshelf/core_ext/file_utils_spec.rb +7 -8
  111. data/spec/unit/berkshelf/core_ext/pathname_spec.rb +1 -1
  112. data/spec/unit/berkshelf/dependency_spec.rb +48 -48
  113. data/spec/unit/berkshelf/downloader_spec.rb +191 -34
  114. data/spec/unit/berkshelf/errors_spec.rb +3 -3
  115. data/spec/unit/berkshelf/file_syncer_spec.rb +87 -87
  116. data/spec/unit/berkshelf/formatters/base_spec.rb +23 -23
  117. data/spec/unit/berkshelf/formatters/human_spec.rb +2 -2
  118. data/spec/unit/berkshelf/formatters/json_spec.rb +2 -2
  119. data/spec/unit/berkshelf/formatters/null_spec.rb +3 -3
  120. data/spec/unit/berkshelf/installer_spec.rb +8 -8
  121. data/spec/unit/berkshelf/location_spec.rb +11 -11
  122. data/spec/unit/berkshelf/locations/base_spec.rb +35 -36
  123. data/spec/unit/berkshelf/locations/git_spec.rb +90 -93
  124. data/spec/unit/berkshelf/locations/path_spec.rb +40 -41
  125. data/spec/unit/berkshelf/lockfile_parser_spec.rb +71 -71
  126. data/spec/unit/berkshelf/lockfile_spec.rb +205 -211
  127. data/spec/unit/berkshelf/logger_spec.rb +3 -3
  128. data/spec/unit/berkshelf/mixin/logging_spec.rb +5 -5
  129. data/spec/unit/berkshelf/packager_spec.rb +2 -2
  130. data/spec/unit/berkshelf/resolver/graph_spec.rb +10 -8
  131. data/spec/unit/berkshelf/resolver_spec.rb +17 -17
  132. data/spec/unit/berkshelf/ridley_compat_spec.rb +16 -0
  133. data/spec/unit/berkshelf/shell_spec.rb +34 -34
  134. data/spec/unit/berkshelf/source_spec.rb +186 -20
  135. data/spec/unit/berkshelf/source_uri_spec.rb +1 -1
  136. data/spec/unit/berkshelf/ssl_policies_spec.rb +86 -0
  137. data/spec/unit/berkshelf/uploader_spec.rb +146 -64
  138. data/spec/unit/berkshelf/validator_spec.rb +23 -16
  139. data/spec/unit/berkshelf/visualizer_spec.rb +24 -15
  140. data/spec/unit/berkshelf_spec.rb +18 -18
  141. metadata +138 -289
  142. data/.gitignore +0 -29
  143. data/.travis.yml +0 -64
  144. data/CHANGELOG.legacy.md +0 -307
  145. data/CHANGELOG.md +0 -1358
  146. data/CONTRIBUTING.md +0 -64
  147. data/Gemfile.lock +0 -399
  148. data/Guardfile +0 -23
  149. data/PLUGINS.md +0 -25
  150. data/README.md +0 -70
  151. data/Thorfile +0 -61
  152. data/appveyor.yml +0 -31
  153. data/docs/berkshelf_for_newcomers.md +0 -65
  154. data/features/berksfile.feature +0 -46
  155. data/features/commands/apply.feature +0 -41
  156. data/features/commands/contingent.feature +0 -48
  157. data/features/commands/cookbook.feature +0 -35
  158. data/features/commands/info.feature +0 -99
  159. data/features/commands/init.feature +0 -27
  160. data/features/commands/install.feature +0 -636
  161. data/features/commands/list.feature +0 -78
  162. data/features/commands/outdated.feature +0 -130
  163. data/features/commands/package.feature +0 -17
  164. data/features/commands/search.feature +0 -17
  165. data/features/commands/shelf/list.feature +0 -32
  166. data/features/commands/shelf/show.feature +0 -143
  167. data/features/commands/shelf/uninstall.feature +0 -96
  168. data/features/commands/show.feature +0 -83
  169. data/features/commands/update.feature +0 -142
  170. data/features/commands/upload.feature +0 -426
  171. data/features/commands/vendor.feature +0 -111
  172. data/features/commands/verify.feature +0 -29
  173. data/features/commands/viz.feature +0 -66
  174. data/features/community_site.feature +0 -37
  175. data/features/config.feature +0 -111
  176. data/features/help.feature +0 -11
  177. data/features/json_formatter.feature +0 -161
  178. data/features/lifecycle.feature +0 -378
  179. data/features/lockfile.feature +0 -378
  180. data/features/step_definitions/berksfile_steps.rb +0 -39
  181. data/features/step_definitions/chef/config_steps.rb +0 -12
  182. data/features/step_definitions/chef_server_steps.rb +0 -60
  183. data/features/step_definitions/cli_steps.rb +0 -18
  184. data/features/step_definitions/config_steps.rb +0 -46
  185. data/features/step_definitions/environment_steps.rb +0 -7
  186. data/features/step_definitions/filesystem_steps.rb +0 -269
  187. data/features/step_definitions/gem_steps.rb +0 -13
  188. data/features/step_definitions/json_steps.rb +0 -23
  189. data/features/step_definitions/utility_steps.rb +0 -11
  190. data/features/support/aruba.rb +0 -12
  191. data/features/support/env.rb +0 -82
  192. data/generator_files/Berksfile.erb +0 -11
  193. data/generator_files/CHANGELOG.md.erb +0 -3
  194. data/generator_files/Gemfile.erb +0 -8
  195. data/generator_files/README.md.erb +0 -42
  196. data/generator_files/Thorfile.erb +0 -11
  197. data/generator_files/Vagrantfile.erb +0 -117
  198. data/generator_files/chefignore +0 -94
  199. data/generator_files/default_recipe.erb +0 -6
  200. data/generator_files/default_test.rb.erb +0 -11
  201. data/generator_files/gitignore.erb +0 -23
  202. data/generator_files/helpers.rb.erb +0 -7
  203. data/generator_files/licenses/apachev2.erb +0 -13
  204. data/generator_files/licenses/gplv2.erb +0 -15
  205. data/generator_files/licenses/gplv3.erb +0 -14
  206. data/generator_files/licenses/mit.erb +0 -20
  207. data/generator_files/licenses/reserved.erb +0 -3
  208. data/generator_files/metadata.rb.erb +0 -11
  209. data/lib/berkshelf/base_generator.rb +0 -43
  210. data/lib/berkshelf/commands/test_command.rb +0 -13
  211. data/lib/berkshelf/cookbook_generator.rb +0 -133
  212. data/lib/berkshelf/init_generator.rb +0 -195
  213. data/spec/fixtures/cookbooks/example_cookbook/.gitignore +0 -2
  214. data/spec/fixtures/cookbooks/example_cookbook/.kitchen.yml +0 -26
  215. data/spec/unit/berkshelf/cookbook_generator_spec.rb +0 -110
  216. data/spec/unit/berkshelf/init_generator_spec.rb +0 -263
data/CONTRIBUTING.md DELETED
@@ -1,64 +0,0 @@
1
- # Contributing
2
-
3
- ## Developing
4
-
5
- If you'd like to submit a patch:
6
-
7
- 1. Fork the project.
8
- 2. Make your feature addition or bug fix.
9
- 3. Add [tests](#testing) for it. This is important so that it isn't broken in a
10
- future version unintentionally.
11
- 4. Commit. **Do not touch any unrelated code, such as the gemspec or version.**
12
- If you must change unrelated code, do it in a commit by itself, so that it
13
- can be ignored.
14
- 5. Send a pull request.
15
-
16
- ## Testing
17
-
18
- ### Install prerequisites
19
-
20
- Install git on your test system.
21
-
22
- Install the latest version of [Bundler](http://gembundler.com)
23
-
24
- $ gem install bundler
25
-
26
- Clone the project
27
-
28
- $ git clone git://github.com/berkshelf/berkshelf.git
29
-
30
- and run:
31
-
32
- $ cd berkshelf
33
- $ bundle install
34
-
35
- Bundler will install all gems and their dependencies required for testing and developing.
36
-
37
- ### Running unit (RSpec) and acceptance (Cucumber) tests
38
-
39
- We use Chef Zero - an in-memory Chef Server for running tests. It is automatically managed by the Specs and Cukes. Simply run:
40
-
41
- $ bundle exec guard start
42
-
43
- See [here](https://github.com/tdegrunt/vagrant-chef-server-bootstrap) for a
44
- quick way to get a testing chef server up.
45
-
46
- ### Debugging Issues
47
- By default, Berkshelf will only give you the top-level output from a failed command. If you're working deep inside the core, an error like:
48
-
49
- Berkshelf Error: wrong number of arguments (2 for 1)
50
-
51
- isn't exactly helpful...
52
-
53
- Specify the `BERKSHELF_DEBUG` flag when running your command to see a full stack trace and other helpful debugging information.
54
-
55
- ## Releasing
56
-
57
- Once you are ready to release Berkshelf, perform the following:
58
-
59
- 1. Update `CHANGELOG.md` with a new header indicating the version to be released
60
- 1. Examine the diff ([example](https://github.com/berkshelf/berkshelf/compare/v4.0.1...master)) between master and the previous version. Add all merged Pull Requests to the `CHANGELOG.md`
61
- 1. Update `version.rb` to the desired release version
62
- 1. Run `bundle update berkshelf`
63
- 1. Create a PR and review the `version.rb` changes and `CHANGELOG.md` changes
64
- 1. Once the PR is merged to master, run `rake release` on the master branch
data/Gemfile.lock DELETED
@@ -1,399 +0,0 @@
1
- GIT
2
- remote: https://github.com/berkshelf/berkshelf-api.git
3
- revision: 9fb3d95779c4ff72b0074072105caaf70b978bf0
4
- ref: 9fb3d95779c4ff72b0074072105caaf70b978bf0
5
- specs:
6
- berkshelf-api (3.0.0)
7
- archive (= 0.0.6)
8
- buff-config (>= 1.0, < 3.0)
9
- celluloid (~> 0.16)
10
- celluloid-io (~> 0.16)
11
- grape (~> 0.14)
12
- grape-msgpack (~> 0.1)
13
- hashie (>= 2.0.4, < 4.0.0)
14
- octokit (>= 3.0.0, < 5.0.0)
15
- reel (~> 0.6.0)
16
- ridley (>= 4.0, < 6.0)
17
- semverse (>= 1.0, < 3.0)
18
- varia_model (~> 0.4)
19
-
20
- PATH
21
- remote: .
22
- specs:
23
- berkshelf (5.2.0)
24
- addressable (~> 2.3, >= 2.3.4)
25
- berkshelf-api-client (>= 2.0.2, < 4.0)
26
- buff-config (~> 2.0)
27
- buff-extensions (~> 2.0)
28
- buff-shell_out (~> 1.0)
29
- cleanroom (~> 1.0)
30
- faraday (~> 0.9)
31
- httpclient (~> 2.7)
32
- minitar (~> 0.5, >= 0.5.4)
33
- mixlib-archive (~> 0.1)
34
- octokit (~> 4.0)
35
- retryable (~> 2.0)
36
- ridley (~> 5.0)
37
- solve (> 2.0, < 4.0)
38
- thor (~> 0.19)
39
-
40
- GEM
41
- remote: https://rubygems.org/
42
- specs:
43
- activesupport (4.2.7.1)
44
- i18n (~> 0.7)
45
- json (~> 1.7, >= 1.7.7)
46
- minitest (~> 5.1)
47
- thread_safe (~> 0.3, >= 0.3.4)
48
- tzinfo (~> 1.1)
49
- addressable (2.4.0)
50
- archive (0.0.6)
51
- ffi (~> 1.9.3)
52
- artifactory (2.5.0)
53
- aruba (0.14.2)
54
- childprocess (~> 0.5.6)
55
- contracts (~> 0.9)
56
- cucumber (>= 1.3.19)
57
- ffi (~> 1.9.10)
58
- rspec-expectations (>= 2.99)
59
- thor (~> 0.19)
60
- ast (2.3.0)
61
- axiom-types (0.1.1)
62
- descendants_tracker (~> 0.0.4)
63
- ice_nine (~> 0.11.0)
64
- thread_safe (~> 0.3, >= 0.3.1)
65
- berkshelf-api-client (3.0.0)
66
- faraday (~> 0.9)
67
- httpclient (~> 2.7)
68
- ridley (>= 4.5, < 6.0)
69
- buff-config (2.0.0)
70
- buff-extensions (~> 2.0)
71
- varia_model (~> 0.6)
72
- buff-extensions (2.0.0)
73
- buff-ignore (1.2.0)
74
- buff-ruby_engine (1.0.0)
75
- buff-shell_out (1.1.0)
76
- buff-ruby_engine (~> 1.0)
77
- builder (3.2.2)
78
- celluloid (0.16.0)
79
- timers (~> 4.0.0)
80
- celluloid-io (0.16.2)
81
- celluloid (>= 0.16.0)
82
- nio4r (>= 1.1.0)
83
- chef-config (12.15.19)
84
- addressable
85
- fuzzyurl
86
- mixlib-config (~> 2.0)
87
- mixlib-shellout (~> 2.0)
88
- chef-zero (5.1.0)
89
- ffi-yajl (~> 2.2)
90
- hashie (>= 2.0, < 4.0)
91
- mixlib-log (~> 1.3)
92
- rack (~> 2.0)
93
- uuidtools (~> 2.1)
94
- childprocess (0.5.9)
95
- ffi (~> 1.0, >= 1.0.11)
96
- cleanroom (1.0.0)
97
- coderay (1.1.1)
98
- coercible (1.0.0)
99
- descendants_tracker (~> 0.0.1)
100
- colorize (0.8.1)
101
- contracts (0.14.0)
102
- coolline (0.5.0)
103
- unicode_utils (~> 1.4)
104
- crack (0.4.3)
105
- safe_yaml (~> 1.0.0)
106
- cucumber (2.4.0)
107
- builder (>= 2.1.2)
108
- cucumber-core (~> 1.5.0)
109
- cucumber-wire (~> 0.0.1)
110
- diff-lcs (>= 1.1.3)
111
- gherkin (~> 4.0)
112
- multi_json (>= 1.7.5, < 2.0)
113
- multi_test (>= 0.1.2)
114
- cucumber-core (1.5.0)
115
- gherkin (~> 4.0)
116
- cucumber-wire (0.0.1)
117
- dep-selector-libgecode (1.3.1)
118
- dep_selector (1.0.4)
119
- dep-selector-libgecode (~> 1.0)
120
- ffi (~> 1.9)
121
- descendants_tracker (0.0.4)
122
- thread_safe (~> 0.3, >= 0.3.1)
123
- diff-lcs (1.2.5)
124
- domain_name (0.5.20161021)
125
- unf (>= 0.0.5, < 1.0.0)
126
- equalizer (0.0.11)
127
- erubis (2.7.0)
128
- faraday (0.9.2)
129
- multipart-post (>= 1.2, < 3)
130
- ffi (1.9.14)
131
- ffi-yajl (2.3.0)
132
- libyajl2 (~> 1.2)
133
- formatador (0.2.5)
134
- fuubar (2.2.0)
135
- rspec-core (~> 3.0)
136
- ruby-progressbar (~> 1.4)
137
- fuzzyurl (0.9.0)
138
- gherkin (4.0.0)
139
- github_api (0.14.5)
140
- addressable (~> 2.4.0)
141
- descendants_tracker (~> 0.0.4)
142
- faraday (~> 0.8, < 0.10)
143
- hashie (>= 3.4)
144
- oauth2 (~> 1.0)
145
- github_changelog_generator (1.11.3)
146
- bundler (>= 1.7)
147
- colorize (~> 0.7)
148
- github_api (~> 0.12)
149
- overcommit (>= 0.31)
150
- rake (>= 10.0)
151
- rspec (>= 3.2)
152
- rubocop (>= 0.31)
153
- grape (0.18.0)
154
- activesupport
155
- builder
156
- hashie (>= 2.1.0)
157
- multi_json (>= 1.3.2)
158
- multi_xml (>= 0.5.2)
159
- mustermann-grape (~> 0.4.0)
160
- rack (>= 1.3.0)
161
- rack-accept
162
- virtus (>= 1.0.0)
163
- grape-msgpack (0.2.0)
164
- grape (>= 0.16.1)
165
- msgpack (>= 0.7.4)
166
- growl (1.0.3)
167
- guard (2.14.0)
168
- formatador (>= 0.2.4)
169
- listen (>= 2.7, < 4.0)
170
- lumberjack (~> 1.0)
171
- nenv (~> 0.1)
172
- notiffany (~> 0.0)
173
- pry (>= 0.9.12)
174
- shellany (~> 0.0)
175
- thor (>= 0.18.1)
176
- guard-compat (1.2.1)
177
- guard-cucumber (2.1.2)
178
- cucumber (~> 2.0)
179
- guard-compat (~> 1.0)
180
- nenv (~> 0.1)
181
- guard-rspec (4.7.3)
182
- guard (~> 2.1)
183
- guard-compat (~> 1.1)
184
- rspec (>= 2.99.0, < 4.0)
185
- guard-spork (2.1.0)
186
- childprocess (>= 0.2.3)
187
- guard (~> 2.0)
188
- guard-compat (~> 1.0)
189
- spork (>= 0.8.4)
190
- hashdiff (0.3.0)
191
- hashie (3.4.6)
192
- hitimes (1.2.4)
193
- http (2.0.3)
194
- addressable (~> 2.3)
195
- http-cookie (~> 1.0)
196
- http-form_data (~> 1.0.1)
197
- http_parser.rb (~> 0.6.0)
198
- http-cookie (1.0.3)
199
- domain_name (~> 0.5)
200
- http-form_data (1.0.1)
201
- http_parser.rb (0.6.0)
202
- httpclient (2.8.2.4)
203
- i18n (0.7.0)
204
- ice_nine (0.11.2)
205
- iniparse (1.4.2)
206
- json (1.8.3)
207
- jwt (1.5.6)
208
- libyajl2 (1.2.0)
209
- listen (3.1.5)
210
- rb-fsevent (~> 0.9, >= 0.9.4)
211
- rb-inotify (~> 0.9, >= 0.9.7)
212
- ruby_dep (~> 1.2)
213
- lumberjack (1.0.10)
214
- method_source (0.8.2)
215
- minitar (0.5.4)
216
- minitest (5.9.1)
217
- mixlib-archive (0.2.0)
218
- mixlib-log
219
- mixlib-authentication (1.4.1)
220
- mixlib-log
221
- mixlib-config (2.2.4)
222
- mixlib-install (2.1.6)
223
- artifactory
224
- mixlib-shellout
225
- mixlib-versioning
226
- thor
227
- mixlib-log (1.7.1)
228
- mixlib-shellout (2.2.7)
229
- mixlib-versioning (1.1.0)
230
- molinillo (0.5.3)
231
- msgpack (1.0.2)
232
- multi_json (1.12.1)
233
- multi_test (0.1.2)
234
- multi_xml (0.5.5)
235
- multipart-post (2.0.0)
236
- mustermann (0.4.0)
237
- tool (~> 0.2)
238
- mustermann-grape (0.4.0)
239
- mustermann (= 0.4.0)
240
- nenv (0.3.0)
241
- net-scp (1.2.1)
242
- net-ssh (>= 2.6.5)
243
- net-ssh (3.2.0)
244
- net-ssh-gateway (1.2.0)
245
- net-ssh (>= 2.6.5)
246
- nio4r (1.2.1)
247
- notiffany (0.1.1)
248
- nenv (~> 0.1)
249
- shellany (~> 0.0)
250
- oauth2 (1.2.0)
251
- faraday (>= 0.8, < 0.10)
252
- jwt (~> 1.0)
253
- multi_json (~> 1.3)
254
- multi_xml (~> 0.5)
255
- rack (>= 1.2, < 3)
256
- octokit (4.4.1)
257
- sawyer (~> 0.7.0, >= 0.5.3)
258
- overcommit (0.37.0)
259
- childprocess (~> 0.5.8)
260
- iniparse (~> 1.4)
261
- parser (2.3.1.4)
262
- ast (~> 2.2)
263
- powerpack (0.1.1)
264
- pry (0.10.4)
265
- coderay (~> 1.1.0)
266
- method_source (~> 0.8.1)
267
- slop (~> 3.4)
268
- rack (2.0.1)
269
- rack-accept (0.4.5)
270
- rack (>= 0.4)
271
- rainbow (2.1.0)
272
- rake (11.3.0)
273
- rb-fsevent (0.9.8)
274
- rb-inotify (0.9.7)
275
- ffi (>= 0.5.0)
276
- reel (0.6.1)
277
- celluloid (>= 0.15.1)
278
- celluloid-io (>= 0.15.0)
279
- http (>= 0.6.0.pre)
280
- http_parser.rb (>= 0.6.0)
281
- websocket-driver (>= 0.5.1)
282
- retryable (2.0.4)
283
- ridley (5.1.0)
284
- addressable
285
- buff-config (~> 2.0)
286
- buff-extensions (~> 2.0)
287
- buff-ignore (~> 1.2)
288
- buff-shell_out (~> 1.0)
289
- celluloid (~> 0.16.0)
290
- celluloid-io (~> 0.16.1)
291
- chef-config (>= 12.5.0)
292
- erubis
293
- faraday (~> 0.9.0)
294
- hashie (>= 2.0.2, < 4.0.0)
295
- httpclient (~> 2.7)
296
- json (>= 1.7.7)
297
- mixlib-authentication (>= 1.3.0)
298
- retryable (~> 2.0)
299
- semverse (~> 2.0)
300
- varia_model (~> 0.6)
301
- rspec (3.5.0)
302
- rspec-core (~> 3.5.0)
303
- rspec-expectations (~> 3.5.0)
304
- rspec-mocks (~> 3.5.0)
305
- rspec-core (3.5.4)
306
- rspec-support (~> 3.5.0)
307
- rspec-expectations (3.5.0)
308
- diff-lcs (>= 1.2.0, < 2.0)
309
- rspec-support (~> 3.5.0)
310
- rspec-mocks (3.5.0)
311
- diff-lcs (>= 1.2.0, < 2.0)
312
- rspec-support (~> 3.5.0)
313
- rspec-support (3.5.0)
314
- rubocop (0.45.0)
315
- parser (>= 2.3.1.1, < 3.0)
316
- powerpack (~> 0.1)
317
- rainbow (>= 1.99.1, < 3.0)
318
- ruby-progressbar (~> 1.7)
319
- unicode-display_width (~> 1.0, >= 1.0.1)
320
- ruby-progressbar (1.8.1)
321
- ruby_dep (1.5.0)
322
- safe_yaml (1.0.4)
323
- sawyer (0.7.0)
324
- addressable (>= 2.3.5, < 2.5)
325
- faraday (~> 0.8, < 0.10)
326
- semverse (2.0.0)
327
- shellany (0.0.1)
328
- slop (3.6.0)
329
- solve (3.0.1)
330
- molinillo (~> 0.4)
331
- semverse (>= 1.1, < 3.0)
332
- spork (0.9.2)
333
- test-kitchen (1.13.2)
334
- mixlib-install (>= 1.2, < 3.0)
335
- mixlib-shellout (>= 1.2, < 3.0)
336
- net-scp (~> 1.1)
337
- net-ssh (>= 2.9, < 4.0)
338
- net-ssh-gateway (~> 1.2.0)
339
- safe_yaml (~> 1.0)
340
- thor (~> 0.18)
341
- thor (0.19.1)
342
- thread_safe (0.3.5)
343
- timers (4.0.4)
344
- hitimes
345
- tool (0.2.3)
346
- tzinfo (1.2.2)
347
- thread_safe (~> 0.1)
348
- unf (0.1.4)
349
- unf_ext
350
- unf_ext (0.0.7.2)
351
- unicode-display_width (1.1.1)
352
- unicode_utils (1.4.0)
353
- uuidtools (2.1.5)
354
- varia_model (0.6.0)
355
- buff-extensions (~> 2.0)
356
- hashie (>= 2.0.2, < 4.0.0)
357
- virtus (1.0.5)
358
- axiom-types (~> 0.1)
359
- coercible (~> 1.0)
360
- descendants_tracker (~> 0.0, >= 0.0.3)
361
- equalizer (~> 0.0, >= 0.0.9)
362
- webmock (2.1.0)
363
- addressable (>= 2.3.6)
364
- crack (>= 0.3.2)
365
- hashdiff
366
- websocket-driver (0.6.4)
367
- websocket-extensions (>= 0.1.0)
368
- websocket-extensions (0.1.2)
369
- yard (0.9.5)
370
-
371
- PLATFORMS
372
- ruby
373
-
374
- DEPENDENCIES
375
- activesupport (~> 4.0)
376
- aruba (>= 0.10.0)
377
- berkshelf!
378
- berkshelf-api!
379
- chef-zero (>= 4.0)
380
- coolline
381
- dep_selector (>= 1.0)
382
- fuubar (>= 2.0)
383
- github_changelog_generator (= 1.11.3)
384
- growl
385
- guard
386
- guard-cucumber
387
- guard-rspec
388
- guard-spork
389
- http (>= 0.9.8)
390
- rake (>= 10.1)
391
- rb-fsevent
392
- rspec (>= 3.0)
393
- spork (>= 0.9)
394
- test-kitchen (>= 1.2)
395
- webmock (>= 1.11)
396
- yard (>= 0.8)
397
-
398
- BUNDLED WITH
399
- 1.13.6
data/Guardfile DELETED
@@ -1,23 +0,0 @@
1
- guard 'spork' do
2
- watch('Gemfile')
3
- watch('spec/spec_helper.rb') { :rspec }
4
- watch(%r{^features/support/}) { :cucumber }
5
- end
6
-
7
- rspec_cli = '--color --drb --format Fuubar'
8
- rspec_cli += ' --tag ~@api_client --tag ~@not_supported_on_windows' if RUBY_PLATFORM =~ /mswin|mingw|windows/
9
- guard 'rspec', cli: rspec_cli, all_on_start: false, all_after_pass: false do
10
- watch(%r{^spec/unit/.+_spec\.rb$})
11
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
12
- watch('spec/spec_helper.rb') { 'spec' }
13
- end
14
-
15
- cucumber_cli = '--drb --format pretty --tags ~@no_run --tags ~@wip'
16
- cucumber_cli += ' --tags ~@spawn --tags ~@api_server' if RUBY_PLATFORM =~ /mswin|mingw|windows/
17
- guard 'cucumber', cli: cucumber_cli, all_on_start: false, all_after_pass: false do
18
- watch(%r{^features/.+\.feature$})
19
- watch(%r{^features/support/.+$}) { 'features' }
20
- watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
21
-
22
- watch(%r{^lib/berkshelf/cli.rb}) { 'features' }
23
- end
data/PLUGINS.md DELETED
@@ -1,25 +0,0 @@
1
- Berkshelf Plugins
2
- =================
3
- This is a list of community-contributed plugins for Berkshelf. A few notes:
4
-
5
- - Please do not open issues regarding a community plugin on Berkshelf. Create the issue on the plugin first please.
6
- - Plugins are listed in alphabetical order for consistency.
7
-
8
- Plugins
9
- -------
10
- - [berkshelf-bzr](https://github.com/berkshelf/berkshelf-bzr) - Add support for downloading cookbooks from Bazaar locations.
11
- - [berkshelf-hg](https://github.com/berkshelf/berkshelf-hg) - Add support for downloading cookbooks from Mercurial locations.
12
- - [vagrant-berkshelf](https://github.com/berkshelf/vagrant-berkshelf) - A Vagrant plugin to add Berkshelf integration to the Chef provisioners.
13
-
14
- I want to add my plugin!
15
- ------------------------
16
- 1. Plugins should be prefixed with `berkshelf-` for consistency.
17
- 1. Create your plugin on github - be sure to include tests. We will most likely not list a plugin that is untested.
18
- 1. Fork the Berkshelf project on github.
19
- 1. Edit this file, adding your plugin. All plugins must be on github. The format for a plugin is:
20
-
21
- [Linked Project Name](#) - A short description of the plugin, what it does, why it exists, etc. ([Optional Link to Plugin Website](#))
22
-
23
- For example:
24
-
25
- [berkshelf-myface](https://github.com/berkshelf/berkshelf-myface) - A plugin to add myface support to Berkshelf.
data/README.md DELETED
@@ -1,70 +0,0 @@
1
- # Berkshelf
2
- [![Gem Version](https://img.shields.io/gem/v/berkshelf.svg)][gem]
3
- [![Build Status](https://img.shields.io/travis/berkshelf/berkshelf.svg)][travis]
4
-
5
- [gem]: https://rubygems.org/gems/berkshelf
6
- [travis]: https://travis-ci.org/berkshelf/berkshelf
7
-
8
- Manage a Cookbook or an Application's Cookbook dependencies
9
-
10
- ## Installation
11
-
12
- Berkshelf is now included as part of the [Chef-DK](https://downloads.chef.io/chef-dk/). This is fastest, easiest, and the recommended installation method for getting up and running with Berkshelf.
13
-
14
- > note: You may need to uninstall the Berkshelf gem especially if you are using a Ruby version manager you may need to uninstall all Berkshelf gems from each Ruby installation.
15
-
16
- ### From Rubygems
17
-
18
- If you are a developer or you prefer to install from Rubygems, we've got you covered.
19
-
20
- Add Berkshelf to your repository's `Gemfile`:
21
-
22
- ```ruby
23
- gem 'berkshelf'
24
- ```
25
-
26
- Or run it as a standalone:
27
-
28
- ```shell
29
- $ gem install berkshelf
30
- ```
31
-
32
- ## Usage
33
-
34
- See [berkshelf.com](http://berkshelf.com) for up-to-date usage instructions.
35
-
36
- ## Supported Platforms
37
-
38
- Berkshelf is tested and supported on Ruby 2.2 and 2.3.
39
-
40
- ## Configuration
41
-
42
- Berkshelf will search in specific locations for a configuration file. In order:
43
-
44
- $PWD/.berkshelf/config.json
45
- ~/.berkshelf/config.json
46
-
47
- You are encouraged to keep project-specific configuration in the `$PWD/.berkshelf` directory. A default configuration file is generated for you, but you can update the values to suit your needs.
48
-
49
- ## Shell Completion
50
-
51
- - [Bash](https://github.com/berkshelf/berkshelf-bash-plugin)
52
- - [ZSH](https://github.com/berkshelf/berkshelf-zsh-plugin)
53
-
54
- ## Plugins
55
-
56
- Please see [Plugins page](https://github.com/berkshelf/berkshelf/blob/master/PLUGINS.md) for more information.
57
-
58
- ## Getting Help
59
-
60
- * If you have an issue: report it on the [issue tracker](https://github.com/berkshelf/berkshelf/issues)
61
- * If you have a question: visit the #chef or #berkshelf channel on irc.freenode.net
62
-
63
- ## Authors
64
-
65
- [The Berkshelf Core Team](https://github.com/berkshelf/berkshelf/wiki/Core-Team)
66
-
67
- Thank you to all of our [Contributors](https://github.com/berkshelf/berkshelf/graphs/contributors), testers, and users.
68
-
69
- If you'd like to contribute, please see our [contribution guidelines](https://github.com/berkshelf/berkshelf/blob/master/CONTRIBUTING.md) first.
70
-
data/Thorfile DELETED
@@ -1,61 +0,0 @@
1
- # encoding: utf-8
2
- $:.unshift File.expand_path('../lib', __FILE__)
3
-
4
- require 'bundler'
5
- require 'thor/rake_compat'
6
-
7
- class Gem < Thor
8
- include Thor::RakeCompat
9
- Bundler::GemHelper.install_tasks
10
-
11
- desc 'build', "Build berkshelf-#{Berkshelf::VERSION}.gem into the pkg directory"
12
- def build
13
- Rake::Task['build'].execute
14
- end
15
-
16
- desc 'install', "Build and install berkshelf-#{Berkshelf::VERSION}.gem into system gems"
17
- def install
18
- Rake::Task['install'].execute
19
- end
20
-
21
- desc 'release', "Create tag v#{Berkshelf::VERSION} and build and push berkshelf-#{Berkshelf::VERSION}.gem to Rubygems"
22
- def release
23
- Rake::Task['release'].execute
24
- end
25
- end
26
-
27
- class Spec < Thor
28
- include Thor::Actions
29
- default_task :all
30
-
31
- desc 'all', 'Run all specs and features'
32
- def all
33
- exit(units_command && acceptance_command)
34
- end
35
-
36
- desc 'ci', 'Run tests on Travis'
37
- def ci
38
- ENV['CI'] = 'true' # Travis-CI also sets this, but set it here for local testing
39
- all
40
- end
41
-
42
- desc 'unit', 'Run unit tests'
43
- def unit
44
- exit(units_command)
45
- end
46
-
47
- desc 'acceptance', 'Run acceptance tests'
48
- def acceptance
49
- exit(acceptance_command)
50
- end
51
-
52
- no_tasks do
53
- def units_command
54
- run('rspec --color --format progress spec/unit')
55
- end
56
-
57
- def acceptance_command
58
- run('cucumber --color --format progress --tags ~@no_run --strict')
59
- end
60
- end
61
- end
data/appveyor.yml DELETED
@@ -1,31 +0,0 @@
1
- version: "master-{build}"
2
-
3
- os: Windows Server 2012 R2
4
- platform:
5
- - x64
6
-
7
- clone_depth: 1
8
- skip_tags: true
9
- skip_branch_with_pr: true
10
- branches:
11
- only:
12
- - master
13
-
14
- # caching vendor/bundle appears to break horribly in the face of gems checked out of git
15
- # cache:
16
- # - vendor/bundle
17
-
18
- install:
19
- - ps: iex (irm https://omnitruck.chef.io/install.ps1); Install-Project -Project chefdk -channel current
20
- - bundle config --local path vendor/bundle
21
- - SET CI=true
22
- - SET BUNDLE_WITHOUT=guard:changelog:style
23
-
24
- build_script:
25
- - ps: c:\opscode\chefdk\bin\chef.bat shell-init powershell | iex
26
- - bundle install || bundle install || bundle install
27
-
28
- test_script:
29
- - SET SPEC_OPTS=--format progress
30
- - c:\opscode\chefdk\bin\chef.bat exec bundle exec rake spec
31
- - c:\opscode\chefdk\bin\chef.bat exec bundle exec cucumber --tags ~@not-windows